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:
Edward Hervey 2010-02-13 15:18:05 +01:00
parent aad80a1053
commit ed6f62f763

View file

@ -1023,6 +1023,7 @@ gst_type_find_element_change_state (GstElement * element,
(GFunc) gst_mini_object_unref, NULL);
g_list_free (typefind->cached_events);
typefind->cached_events = NULL;
typefind->mode = MODE_TYPEFIND;
GST_OBJECT_UNLOCK (typefind);
break;
default: