basesink: set the last position to minimum value after rewind
Submitted by Myoungsun Lee
Link to original bug (#739990)
Description
Created attachment 290452
Set the last position to minimum value after rewind
Set the last position to minimum value after rewind
Overview:
Let's suppose the video file is encoded with wrong pts value
If we rewind this file and wait until the video play again at first,
then the basesink sets the last position to wrong value.
So in this case, basesink chooses the minimum value to set the last position.
Steps to Reproduce:
rewind the video and wait until it play again at start position.
Actual Results:
the play(current) time temporarily increases to the wrong position.
and play again at start.
Expected Results:
play well without increasing the play time to the wrong position.
Patch 290452, "Set the last position to minimum value after rewind":
0001-basesink-set-the-last-position-to-minimum-value.patch