comparison libmpcodecs/vd_ffmpeg.c @ 21243:3ee64ff583a9

Useless use of strstr, strchr is good enough.
author reimar
date Sun, 26 Nov 2006 12:12:46 +0000
parents 8d671a2c1b00
children 5f6002214861
comparison
equal deleted inserted replaced
21242:8d671a2c1b00 21243:3ee64ff583a9
210 210
211 if(print_prefix && avc) { 211 if(print_prefix && avc) {
212 mp_msg(type, mp_level, "[%s @ %p]", avc->item_name(ptr), avc); 212 mp_msg(type, mp_level, "[%s @ %p]", avc->item_name(ptr), avc);
213 } 213 }
214 214
215 print_prefix= strstr(fmt, "\n") != NULL; 215 print_prefix= strchr(fmt, '\n') != NULL;
216 vsnprintf(buf, sizeof(buf), fmt, vl); 216 vsnprintf(buf, sizeof(buf), fmt, vl);
217 mp_msg(type, mp_level, buf); 217 mp_msg(type, mp_level, buf);
218 } 218 }
219 219
220 // init driver 220 // init driver