From: Sebastian Dröge Date: Mon, 29 Apr 2013 11:20:11 +0000 (+0200) Subject: typefind: Always leave TYPEFIND mode when we're stopping typefinding X-Git-Tag: 1.1.1~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c24bcbf5116c5b081c1cfdabe2777c3919ddd7a5;p=platform%2Fupstream%2Fgstreamer.git typefind: Always leave TYPEFIND mode when we're stopping typefinding --- diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index 5ea26f8..e9e849e 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -548,6 +548,7 @@ stop_typefinding (GstTypeFindElement * typefind) GST_DEBUG_OBJECT (typefind, "stopping typefinding%s", push_cached_buffers ? " and pushing cached events and buffers" : ""); + typefind->mode = MODE_NORMAL; if (push_cached_buffers) gst_type_find_element_send_cached_events (typefind); @@ -564,8 +565,6 @@ stop_typefinding (GstTypeFindElement * typefind) } else { GstPad *peer = gst_pad_get_peer (typefind->src); - typefind->mode = MODE_NORMAL; - /* make sure the user gets a meaningful error message in this case, * which is not a core bug or bug of any kind (as the default error * message emitted by gstpad.c otherwise would make you think) */