diff --git a/ChangeLog b/ChangeLog index c6979634dc..4897c63dad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-04-22 Ronald S. Bultje + + * gst/elements/gsttypefindelement.c: + (gst_type_find_element_handle_event): + Don't cache seek events (fixes #301313). + 2005-04-22 Kjartan Maraas Reviewed by: Ronald S. Bultje diff --git a/gst/elements/gsttypefindelement.c b/gst/elements/gsttypefindelement.c index 63bb439fa6..8c0c001c6f 100644 --- a/gst/elements/gsttypefindelement.c +++ b/gst/elements/gsttypefindelement.c @@ -505,6 +505,10 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event) stop_typefinding (typefind); } break; + case GST_EVENT_DISCONTINUOUS: + case GST_EVENT_FLUSH: + gst_event_unref (event); + break; default: typefind->pending_events = g_list_append (typefind->pending_events, event); diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index 63bb439fa6..8c0c001c6f 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -505,6 +505,10 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event) stop_typefinding (typefind); } break; + case GST_EVENT_DISCONTINUOUS: + case GST_EVENT_FLUSH: + gst_event_unref (event); + break; default: typefind->pending_events = g_list_append (typefind->pending_events, event);