[MPlayer-cvslog] r37729 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Sun Feb 14 15:37:58 CET 2016


Author: reimar
Date: Sun Feb 14 15:37:58 2016
New Revision: 37729

Log:
mplayer.c: more thoroughly check rtc return value.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sun Feb 14 15:12:53 2016	(r37728)
+++ trunk/mplayer.c	Sun Feb 14 15:37:58 2016	(r37729)
@@ -1839,7 +1839,7 @@ static float timing_sleep(float time_fra
         current_module = "sleep_rtc";
         while (time_frame > 0.000) {
             unsigned long rtc_ts;
-            if (read(rtc_fd, &rtc_ts, sizeof(rtc_ts)) <= 0)
+            if (read(rtc_fd, &rtc_ts, sizeof(rtc_ts)) != sizeof(rtc_ts))
                 mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_LinuxRTCReadError, strerror(errno));
             time_frame -= GetRelativeTime();
         }


More information about the MPlayer-cvslog mailing list