imagefreeze: pass along eos if received before buffer arrives

Fixes #636172.
This commit is contained in:
David Hoyt 2010-12-06 15:21:53 +01:00 committed by Mark Nauwelaerts
parent fd6bc949c8
commit 6e7474459a

View file

@ -553,6 +553,13 @@ gst_image_freeze_sink_event (GstPad * pad, GstEvent * event)
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_EOS:
if (!self->buffer) {
/* if we receive EOS before a buffer arrives, then let it pass */
GST_DEBUG_OBJECT (self, "EOS without input buffer, passing on");
ret = gst_pad_push_event (self->srcpad, event);
break;
}
/* fall-through */
case GST_EVENT_NEWSEGMENT:
GST_DEBUG_OBJECT (pad, "Dropping event");
gst_event_unref (event);