X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faudio_output%2Ffile.c;h=07da0fe1384492ef5aeeea22a6e2eff31fb3b626;hb=848489c3863b1b7ddbe542aa3e746063722b9280;hp=0c877eb439ac5b417b306a9c92417dbc998af444;hpb=5e15258c9ef28558fe2abc941fc1527e02b04c21;p=vlc diff --git a/modules/audio_output/file.c b/modules/audio_output/file.c index 0c877eb439..07da0fe138 100644 --- a/modules/audio_output/file.c +++ b/modules/audio_output/file.c @@ -25,13 +25,14 @@ /***************************************************************************** * Preamble *****************************************************************************/ -#include #ifdef HAVE_CONFIG_H # include "config.h" #endif -#include +#include + +#include #include #include #include /* WAVEHEADER */ @@ -154,10 +155,7 @@ static int Open( vlc_object_t * p_this ) /* Allocate structure */ p_aout->output.p_sys = malloc( sizeof( aout_sys_t ) ); if( p_aout->output.p_sys == NULL ) - { - msg_Err( p_aout, "out of memory" ); - return VLC_EGENERIC; - } + return VLC_ENOMEM; if( !strcmp( psz_name, "-" ) ) p_aout->output.p_sys->p_file = stdout;