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