mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
typefind: Always leave TYPEFIND mode when we're stopping typefinding
This commit is contained in:
parent
11f6e08aae
commit
c24bcbf511
1 changed files with 1 additions and 2 deletions
|
@ -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) */
|
||||
|
|
Loading…
Reference in a new issue