# HG changeset patch # User diego # Date 1233504139 0 # Node ID f02a92b6d0a474d69b973358b5986d779d45d6f4 # Parent 303467269af19ff4c4129bfbfd92d422a562eb85 Do not print a warning if current pts is equal to previous pts. patch by Dennis Vshivkov, jaimor orcon net nz diff -r 303467269af1 -r f02a92b6d0a4 mplayer.c --- a/mplayer.c Sun Feb 01 15:51:48 2009 +0000 +++ b/mplayer.c Sun Feb 01 16:02:19 2009 +0000 @@ -2307,9 +2307,9 @@ } 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;