updsrc: clear error

This commit is contained in:
Mark Nauwelaerts 2012-04-05 19:17:29 +02:00
parent 786c801d81
commit 31edc9f7c0

View file

@ -393,6 +393,7 @@ retry:
|| g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { || g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
goto stopped; goto stopped;
} else if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_TIMED_OUT)) { } else if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_TIMED_OUT)) {
g_clear_error (&err);
/* timeout, post element message */ /* timeout, post element message */
gst_element_post_message (GST_ELEMENT_CAST (udpsrc), gst_element_post_message (GST_ELEMENT_CAST (udpsrc),
gst_message_new_element (GST_OBJECT_CAST (udpsrc), gst_message_new_element (GST_OBJECT_CAST (udpsrc),
@ -490,6 +491,7 @@ select_error:
stopped: stopped:
{ {
GST_DEBUG ("stop called"); GST_DEBUG ("stop called");
g_clear_error (&err);
return GST_FLOW_FLUSHING; return GST_FLOW_FLUSHING;
} }
get_available_error: get_available_error: