mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-16 12:49:59 +01:00
BugFix MediaPlayer first PTS used for rewind video
Also shows the gap in the video timeline
This commit is contained in:
@@ -1495,6 +1495,9 @@ bool MediaPlayer::fill_frame(GstBuffer *buf, FrameStatus status)
|
||||
// set the start position (i.e. pts of first frame we got)
|
||||
if (timeline_.first() == GST_CLOCK_TIME_NONE) {
|
||||
timeline_.setFirst(buf->pts);
|
||||
// add a gap to show that before
|
||||
if (buf->pts > 0 && !timeline_.gapAt( buf->pts ))
|
||||
timeline_.addGap(0, buf->pts);
|
||||
}
|
||||
}
|
||||
// full but invalid frame : will be deleted next iteration
|
||||
|
||||
Reference in New Issue
Block a user