changeset 10053:8e84e8deb529

Changed the order of two conditionals in an "if" statement, to make the code (very slightly) more efficient in the common case.
author rsf
date Sat, 03 May 2003 06:09:36 +0000
parents b358b7509e1a
children 1342075f81f0
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat May 03 05:59:29 2003 +0000
+++ b/mplayer.c	Sat May 03 06:09:36 2003 +0000
@@ -2204,7 +2204,7 @@
 	static int drop_message=0;
         float x;
 	AV_delay=(a_pts-delay-audio_delay)-v_pts;
-	if(drop_frame_cnt>50+drop_message*250 && AV_delay>0.5){
+	if(AV_delay>0.5 && drop_frame_cnt>50+drop_message*250){
 	  ++drop_message;
 	  mp_msg(MSGT_AVSYNC,MSGL_ERR,MSGTR_SystemTooSlow);
 	}