Commit 57fabbef authored by Rémi Duraffort's avatar Rémi Duraffort

Fix compilation of caca vout.

parent cc8c4755
...@@ -164,7 +164,9 @@ static int Create( vlc_object_t *p_this ) ...@@ -164,7 +164,9 @@ static int Create( vlc_object_t *p_this )
p_vout->p_sys = malloc( sizeof( vout_sys_t ) ); p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
if( p_vout->p_sys == NULL ) if( p_vout->p_sys == NULL )
{ {
#if defined( WIN32 ) && !defined( UNDER_CE )
FreeConsole(); FreeConsole();
#endif
return VLC_ENOMEM; return VLC_ENOMEM;
} }
...@@ -172,7 +174,9 @@ static int Create( vlc_object_t *p_this ) ...@@ -172,7 +174,9 @@ static int Create( vlc_object_t *p_this )
if( !p_vout->p_sys->p_cv ) if( !p_vout->p_sys->p_cv )
{ {
msg_Err( p_vout, "cannot initialize libcucul" ); msg_Err( p_vout, "cannot initialize libcucul" );
#if defined( WIN32 ) && !defined( UNDER_CE )
FreeConsole(); FreeConsole();
#endif
free( p_vout->p_sys ); free( p_vout->p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -182,6 +186,9 @@ static int Create( vlc_object_t *p_this ) ...@@ -182,6 +186,9 @@ static int Create( vlc_object_t *p_this )
{ {
msg_Err( p_vout, "cannot initialize libcaca" ); msg_Err( p_vout, "cannot initialize libcaca" );
cucul_free_canvas( p_vout->p_sys->p_cv ); cucul_free_canvas( p_vout->p_sys->p_cv );
#if defined( WIN32 ) && !defined( UNDER_CE )
FreeConsole();
#endif
free( p_vout->p_sys ); free( p_vout->p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment