[vlc-devel] [vlc-commits] Add lua console handling code for windows.
Rémi Denis-Courmont
remi at remlab.net
Thu Feb 9 08:39:54 CET 2012
On Thu, 9 Feb 2012 02:24:54 +0100, Pierre Ynard <linkfanel at yahoo.fr>
wrote:
>> + freopen( "CONOUT$", "w", stdout );
>> + freopen( "CONOUT$", "w", stderr );
>> + freopen( "CONIN$", "r", stdin );
>
> This code is taken from a macro in vlc_interface.h. Couldn't you just
> call the macro?
I am not entirely sure, but I believe freopen() is not thread-safe on
Windows. Then it cannot be called here from a VLC plugin. (If another task
tries to use std* at the same time, it will most probably crash.)
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list