[MPlayer-cvslog] r21259 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Sun Nov 26 13:12:46 CET 2006


Author: reimar
Date: Sun Nov 26 13:12:46 2006
New Revision: 21259

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Log:
Useless use of strstr, strchr is good enough.


Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	(original)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Sun Nov 26 13:12:46 2006
@@ -212,7 +212,7 @@
         mp_msg(type, mp_level, "[%s @ %p]", avc->item_name(ptr), avc);
     }
 
-    print_prefix= strstr(fmt, "\n") != NULL;
+    print_prefix= strchr(fmt, '\n') != NULL;
     vsnprintf(buf, sizeof(buf), fmt, vl);
     mp_msg(type, mp_level, buf);
 }



More information about the MPlayer-cvslog mailing list