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

Rémi Denis-Courmont 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.
>>Rémi Denis-Courmont
>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
>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.
>Shaleen Jain

No, that is not thread-safe.
Rémi Denis-Courmont
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170414/c8cae957/attachment.html>

More information about the vlc-devel mailing list