X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Faa.c;h=9710b593d3a3d198185b28f251c1182517ad2c2e;hb=2f2c5f85a20bea99093c85825442280010018667;hp=eafa4a8753bce80b1639d14a89cd031148ae2e12;hpb=d3fe7f28797d4dba65ffcdd60bf932e758a48a9e;p=vlc diff --git a/modules/video_output/aa.c b/modules/video_output/aa.c index eafa4a8753..9710b593d3 100644 --- a/modules/video_output/aa.c +++ b/modules/video_output/aa.c @@ -25,12 +25,15 @@ * Preamble *****************************************************************************/ #include /* ENOMEM */ -#include /* free() */ -#include /* strerror() */ #include -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include #include #include @@ -52,10 +55,10 @@ static void SetPalette ( vout_thread_t *, uint16_t *, uint16_t *, uint16_t * * Module descriptor *****************************************************************************/ vlc_module_begin(); - set_shortname( _("ASCII Art")); + set_shortname( N_("ASCII Art")); set_category( CAT_VIDEO ); set_subcategory( SUBCAT_VIDEO_VOUT ); - set_description( _("ASCII-art video output") ); + set_description( N_("ASCII-art video output") ); set_capability( "video output", 10 ); add_shortcut( "aalib" ); set_callbacks( Create, Destroy ); @@ -87,10 +90,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( 1 ); - } /* Don't parse any options, but take $AAOPTS into account */ aa_parseoptions( NULL, NULL, NULL, NULL );