X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faudio_output%2Ffile.c;h=32f34384d86d6e6a7b1064555f4f38539f54dbb2;hb=7e39dc8b10afd76ab1b40844d971cdcb63e8d843;hp=18fd45c7a05698859e905a28e20f1946af282a77;hpb=d601e4ed290edf58e9ace5c28f06c77ebf072004;p=vlc diff --git a/modules/audio_output/file.c b/modules/audio_output/file.c index 18fd45c7a0..32f34384d8 100644 --- a/modules/audio_output/file.c +++ b/modules/audio_output/file.c @@ -123,8 +123,7 @@ vlc_module_begin () add_bool( "audiofile-wav", true, NULL, WAV_TEXT, WAV_LONGTEXT, true ) set_capability( "audio output", 0 ) - add_shortcut( "file" ) - add_shortcut( "audiofile" ) + add_shortcut( "file", "audiofile" ) set_callbacks( Open, Close ) vlc_module_end () @@ -154,7 +153,7 @@ static int Open( vlc_object_t * p_this ) if( !strcmp( psz_name, "-" ) ) p_aout->output.p_sys->p_file = stdout; else - p_aout->output.p_sys->p_file = utf8_fopen( psz_name, "wb" ); + p_aout->output.p_sys->p_file = vlc_fopen( psz_name, "wb" ); free( psz_name ); if ( p_aout->output.p_sys->p_file == NULL ) @@ -221,7 +220,7 @@ static int Open( vlc_object_t * p_this ) /* Write wave header */ WAVEHEADER *wh = &p_aout->output.p_sys->waveh; - memset( wh, 0, sizeof(wh) ); + memset( wh, 0, sizeof(*wh) ); switch( p_aout->output.output.i_format ) {