From: Sebastian Dröge Date: Mon, 11 Jul 2011 10:36:42 +0000 (+0200) Subject: basevideodecoder: Track present position on discont before resetting it X-Git-Tag: 1.19.3~501^2~1019 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99c9f57460e354154dd6d0e21bc164528a62c257;p=platform%2Fupstream%2Fgstreamer.git basevideodecoder: Track present position on discont before resetting it --- diff --git a/omx/gstbasevideodecoder.c b/omx/gstbasevideodecoder.c index 3fd67a1..f2b2a68 100644 --- a/omx/gstbasevideodecoder.c +++ b/omx/gstbasevideodecoder.c @@ -1250,12 +1250,13 @@ gst_base_video_decoder_chain (GstPad * pad, GstBuffer * buf) gint64 ts, index; GST_DEBUG_OBJECT (base_video_decoder, "received DISCONT buffer"); - gst_base_video_decoder_flush (base_video_decoder, FALSE); /* track present position */ ts = base_video_decoder->timestamp_offset; index = base_video_decoder->field_index; + gst_base_video_decoder_flush (base_video_decoder, FALSE); + /* buffer may claim DISCONT loudly, if it can't tell us where we are now, * we'll stick to where we were ... * Particularly useful/needed for upstream BYTE based */