[vlc-devel] commit: Fix compilation of caca vout. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Mar 17 22:43:24 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Mar 17 22:43:10 2009 +0100| [57fabbefa80caee2a77f37947f7ae251803abeb8] | committer: Rémi Duraffort
Fix compilation of caca vout.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=57fabbefa80caee2a77f37947f7ae251803abeb8
---
modules/video_output/caca.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/caca.c b/modules/video_output/caca.c
index 9e755eb..63e437f 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;
}
More information about the vlc-devel
mailing list