[vlc-devel] [PATCH 1/2] demux: mkv: parse language codes with embedded country codes
remi at remlab.net
Fri Apr 14 09:17:33 CEST 2017
On April 14, 2017 9:00:34 AM GMT+02:00, Shaleen <shaleen.jain95 at gmail.com> wrote:
>>This is not thread-safe.
>If I was calling strtok multiple times for a single string with NULL
>in for subsequent calls so that strtok maintains a internal buffer, it
>would have been thread unsafe, in which case I would have used
>But since I'm calling strtok only once to get the very first token
>not need to maintain an internal buffer for use by strtok and hence
>eliminates the very cause of it not being thread safe.
No, that is not thread-safe.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel