gst/elements/gsttypefindelement.c: Don't cache seek events (fixes #301313).

Original commit message from CVS:
* gst/elements/gsttypefindelement.c:
(gst_type_find_element_handle_event):
Don't cache seek events (fixes #301313).
This commit is contained in:
Ronald S. Bultje 2005-04-22 15:03:50 +00:00
parent d6386e096a
commit 970c2f3ff6
3 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-04-22 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/elements/gsttypefindelement.c:
(gst_type_find_element_handle_event):
Don't cache seek events (fixes #301313).
2005-04-22 Kjartan Maraas <kmaraas@gnome.org> 2005-04-22 Kjartan Maraas <kmaraas@gnome.org>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

View file

@ -505,6 +505,10 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event)
stop_typefinding (typefind); stop_typefinding (typefind);
} }
break; break;
case GST_EVENT_DISCONTINUOUS:
case GST_EVENT_FLUSH:
gst_event_unref (event);
break;
default: default:
typefind->pending_events = g_list_append (typefind->pending_events, typefind->pending_events = g_list_append (typefind->pending_events,
event); event);

View file

@ -505,6 +505,10 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event)
stop_typefinding (typefind); stop_typefinding (typefind);
} }
break; break;
case GST_EVENT_DISCONTINUOUS:
case GST_EVENT_FLUSH:
gst_event_unref (event);
break;
default: default:
typefind->pending_events = g_list_append (typefind->pending_events, typefind->pending_events = g_list_append (typefind->pending_events,
event); event);