From: RĂ©mi Duraffort Date: Tue, 17 Mar 2009 21:43:10 +0000 (+0100) Subject: Fix compilation of caca vout. X-Git-Tag: 1.0.0-pre1~5 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=57fabbefa80caee2a77f37947f7ae251803abeb8;p=vlc Fix compilation of caca vout. --- diff --git a/modules/video_output/caca.c b/modules/video_output/caca.c index 9e755eb9d0..63e437f263 100644 --- a/modules/video_output/caca.c +++ b/modules/video_output/caca.c @@ -164,7 +164,9 @@ static int Create( vlc_object_t *p_this ) p_vout->p_sys = malloc( sizeof( vout_sys_t ) ); if( p_vout->p_sys == NULL ) { +#if defined( WIN32 ) && !defined( UNDER_CE ) FreeConsole(); +#endif return VLC_ENOMEM; } @@ -172,7 +174,9 @@ static int Create( vlc_object_t *p_this ) if( !p_vout->p_sys->p_cv ) { msg_Err( p_vout, "cannot initialize libcucul" ); +#if defined( WIN32 ) && !defined( UNDER_CE ) FreeConsole(); +#endif free( p_vout->p_sys ); return VLC_EGENERIC; } @@ -182,6 +186,9 @@ static int Create( vlc_object_t *p_this ) { msg_Err( p_vout, "cannot initialize libcaca" ); cucul_free_canvas( p_vout->p_sys->p_cv ); +#if defined( WIN32 ) && !defined( UNDER_CE ) + FreeConsole(); +#endif free( p_vout->p_sys ); return VLC_EGENERIC; }