1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00

Do not print a warning if current pts is equal to previous pts.

patch by Dennis Vshivkov, jaimor orcon net nz


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28445 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2009-02-01 16:02:19 +00:00
parent 71e641a4c3
commit 043159f3bb

View File

@ -2307,9 +2307,9 @@ static double update_video(int *blit_frame)
}
if (sh_video->last_pts == MP_NOPTS_VALUE)
sh_video->last_pts= sh_video->pts;
else if (sh_video->last_pts >= sh_video->pts) {
else if (sh_video->last_pts > sh_video->pts) {
sh_video->last_pts = sh_video->pts;
mp_msg(MSGT_CPLAYER, MSGL_INFO, "pts value <= previous\n");
mp_msg(MSGT_CPLAYER, MSGL_INFO, "pts value < previous\n");
}
frame_time = sh_video->pts - sh_video->last_pts;
sh_video->last_pts = sh_video->pts;