mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
basevideodecoder: Track present position on discont before resetting it
This commit is contained in:
parent
99da6b1db1
commit
99c9f57460
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