[vlc-devel] [PATCH] Add Smooth Streaming module
Aurélien Nephtali
aurelien.nephtali at gmail.com
Tue Apr 24 18:28:57 CEST 2012
Hello,
On Tue, Apr 24, 2012 at 3:35 PM, Frederic YHUEL <fyhuel at viotech.net> wrote:
>>>> + if( strstr( (const char*)peek, needle ) != NULL )
>>
>> What if peek contains no '\0' and the needle is not in there?
>>
>
> Then it returns false... am I missing something?
>
strstr() will keep reading in 'peek' until it finds 'needle' or \0.
If both are not there it will continue reading beyond 'peek' and
return NULL if a \0 is finally found or crash if you are out of luck.
--
Aurélien Nephtali
More information about the vlc-devel
mailing list