[vlc-devel] [PATCH 1/2] demux: mkv: parse language codes with embedded country codes

Shaleen shaleen.jain95 at gmail.com
Fri Apr 14 09:00:34 CEST 2017


>This is not thread-safe.
>--
>RĂ©mi Denis-Courmont

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.

Regards
Shaleen Jain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170414/7bac95ae/attachment.html>


More information about the vlc-devel mailing list