From 57fabbefa80caee2a77f37947f7ae251803abeb8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Tue, 17 Mar 2009 22:43:10 +0100 Subject: [PATCH] Fix compilation of caca vout. --- modules/video_output/caca.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.39.2