mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
basevideodecoder: Track present position on discont before resetting it
This commit is contained in:
parent
08823f80d6
commit
a59246c1d1
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue