From 5adea0d2f947ac736fcd337780f2595be23050bf Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 28 Jan 2005 10:12:07 +0000 Subject: [PATCH] gst/elements/gsttypefindelement.c: Fix buffer pushing if stream EOSes during typefinding. Original commit message from CVS: * gst/elements/gsttypefindelement.c: (gst_type_find_element_handle_event): Fix buffer pushing if stream EOSes during typefinding. --- ChangeLog | 6 ++++++ gst/elements/gsttypefindelement.c | 1 + plugins/elements/gsttypefindelement.c | 1 + 3 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8785e6b..65bd4c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-01-28 Ronald S. Bultje + + * gst/elements/gsttypefindelement.c: + (gst_type_find_element_handle_event): + Fix buffer pushing if stream EOSes during typefinding. + 2005-01-28 Edward Hervey Reviewed by: Ronald S. Bultje diff --git a/gst/elements/gsttypefindelement.c b/gst/elements/gsttypefindelement.c index 8bc760e..a3b6fa2 100644 --- a/gst/elements/gsttypefindelement.c +++ b/gst/elements/gsttypefindelement.c @@ -484,6 +484,7 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event) g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE], 0, entry->probability, entry->caps); stop_typefinding (typefind); + push_buffer_store (typefind); gst_pad_event_default (pad, event); } else { gst_pad_event_default (pad, event); diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index 8bc760e..a3b6fa2 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -484,6 +484,7 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event) g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE], 0, entry->probability, entry->caps); stop_typefinding (typefind); + push_buffer_store (typefind); gst_pad_event_default (pad, event); } else { gst_pad_event_default (pad, event); -- 2.7.4