mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 03:32:50 +00:00
Useless use of strstr, strchr is good enough.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21259 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e56c8ee2d0
commit
e85f73f7fb
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user