mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
typefind: Reset the working mode when going to READY/NULL
This allows properly re-using typefind (else it would think it's already done the typefinding when being re-used with another stream).
This commit is contained in:
parent
aad80a1053
commit
ed6f62f763
1 changed files with 1 additions and 0 deletions
|
@ -1023,6 +1023,7 @@ gst_type_find_element_change_state (GstElement * element,
|
||||||
(GFunc) gst_mini_object_unref, NULL);
|
(GFunc) gst_mini_object_unref, NULL);
|
||||||
g_list_free (typefind->cached_events);
|
g_list_free (typefind->cached_events);
|
||||||
typefind->cached_events = NULL;
|
typefind->cached_events = NULL;
|
||||||
|
typefind->mode = MODE_TYPEFIND;
|
||||||
GST_OBJECT_UNLOCK (typefind);
|
GST_OBJECT_UNLOCK (typefind);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue