From 52cfce851afff724a170cf7e90978a90a7a6b3f7 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sun, 2 Sep 2012 23:19:09 -0700 Subject: [PATCH] Fix still-frame handling. Still frame events are not OOB downstream. Also, always send immediately downstream. --- gst-libs/gst/video/gstvideodecoder.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index a714e0f..4032199 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -960,20 +960,21 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder, forward_immediate = TRUE; break; } - case GST_EVENT_CUSTOM_DOWNSTREAM_OOB: + case GST_EVENT_CUSTOM_DOWNSTREAM: { gboolean in_still; GstFlowReturn flow_ret = GST_FLOW_OK; if (gst_video_event_parse_still_frame (event, &in_still)) { if (in_still) { + GST_DEBUG_OBJECT (decoder, "draining current data for still-frame"); flow_ret = gst_video_decoder_drain_out (decoder, FALSE); ret = (flow_ret == GST_FLOW_OK); - forward_immediate = TRUE; } + forward_immediate = TRUE; } + break; } - case GST_EVENT_SEGMENT: { GstSegment segment; -- 2.7.4