X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Fcaca.c;h=888414a9eaa1784566a5f279e637396f9b66e89b;hb=ba9ecc700f9dd868929b81e492ea287f0ed244f6;hp=56a140b831cb0ddbd118e5e1f80ada1fb30b78d9;hpb=df61d33b06e2b3cbbe746b2f5a9bea5b370c24ff;p=vlc diff --git a/modules/video_output/caca.c b/modules/video_output/caca.c index 56a140b831..888414a9ea 100644 --- a/modules/video_output/caca.c +++ b/modules/video_output/caca.c @@ -29,7 +29,8 @@ # include "config.h" #endif -#include +#include +#include #include #include #include @@ -79,7 +80,7 @@ vlc_module_begin(); set_shortname( "Caca" ); set_category( CAT_VIDEO ); set_subcategory( SUBCAT_VIDEO_VOUT ); - set_description( _("Color ASCII art video output") ); + set_description( N_("Color ASCII art video output") ); set_capability( "video output", 12 ); set_callbacks( Create, Destroy ); vlc_module_end(); @@ -162,10 +163,7 @@ static int Create( vlc_object_t *p_this ) /* Allocate structure */ p_vout->p_sys = malloc( sizeof( vout_sys_t ) ); if( p_vout->p_sys == NULL ) - { - msg_Err( p_vout, "out of memory" ); return VLC_ENOMEM; - } p_vout->p_sys->p_cv = cucul_create_canvas(0, 0); if( !p_vout->p_sys->p_cv ) @@ -374,7 +372,7 @@ static int Manage( vout_thread_t *p_vout ) case CACA_EVENT_QUIT: { p_playlist = vlc_object_find( p_vout, - VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); + VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); if( p_playlist ) { playlist_Stop( p_playlist ); @@ -397,7 +395,7 @@ static int Manage( vout_thread_t *p_vout ) *****************************************************************************/ static void Render( vout_thread_t *p_vout, picture_t *p_pic ) { - cucul_set_color( p_vout->p_sys->p_cv, + cucul_set_color_ansi( p_vout->p_sys->p_cv, CUCUL_COLOR_DEFAULT, CUCUL_COLOR_BLACK ); cucul_clear_canvas( p_vout->p_sys->p_cv ); cucul_dither_bitmap( p_vout->p_sys->p_cv, 0, 0,