How to post element error message to the bus.
tanmay.ambre
ambre.tanmay at gmail.com
Wed Jun 13 03:39:16 PDT 2012
I am using OSSBUILD
To fix a bug for capture when USB headset is unplugged. I inserted a
GST_ELEMENT_ERROR message.
if (hRes != DS_OK)
{
GST_DSOUND_UNLOCK (dsoundsrc);
gst_element_post_message(dsoundsrc,
* GST_ELEMENT_ERROR (dsoundsrc, RESOURCE, READ,
("Device Read Error hRes = %i", hRes), (NULL));*
return -1;
}
In the debug version of my program it works fine.
While the release version the bus never recieves the messege.
Is this the correct way post an error?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-post-element-error-message-to-the-bus-tp4655271.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120613/d09bfc26/attachment.htm>
More information about the gstreamer-devel
mailing list