From e85f73f7fb79025eafd2149c9bcd50f7915a220f Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 26 Nov 2006 12:12:46 +0000 Subject: [PATCH] Useless use of strstr, strchr is good enough. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21259 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 32e3bb9873..85c3841718 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -212,7 +212,7 @@ void mp_msp_av_log_callback(void* ptr, int level, const char* fmt, va_list vl) 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); }