X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcodec%2Ffake.c;h=3861c51c9aca45b8ee0ba25b3c45c81944068e81;hb=5cb4066e102b6c6e89ab890439c5bf9c74703262;hp=0a8a21727ed1525df32705c9e8a8dd7bc707ff10;hpb=fd2c85f56b67d2ad436d67ada15ed0e8d4073578;p=vlc diff --git a/modules/codec/fake.c b/modules/codec/fake.c index 0a8a21727e..3861c51c9a 100644 --- a/modules/codec/fake.c +++ b/modules/codec/fake.c @@ -25,6 +25,10 @@ /***************************************************************************** * Preamble *****************************************************************************/ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include @@ -221,7 +225,7 @@ static int OpenDecoder( vlc_object_t *p_this ) } msg_Dbg( p_dec, "file %s loaded successfully", psz_file ); - if ( psz_file ) free( psz_file ); + free( psz_file ); if ( b_keep_ar ) { @@ -300,7 +304,7 @@ static int OpenDecoder( vlc_object_t *p_this ) p_handler = image_HandlerCreate( p_dec ); p_image = image_Filter( p_handler, p_old, &fmt_out, val.psz_string ); image_HandlerDelete( p_handler ); - if ( val.psz_string != NULL ) free( val.psz_string ); + free( val.psz_string ); if ( p_image == NULL ) { @@ -384,6 +388,7 @@ static int FakeCallback( vlc_object_t *p_this, char const *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data ) { + VLC_UNUSED(p_this); VLC_UNUSED(oldval); decoder_t *p_dec = (decoder_t *)p_data; if( !strcmp( psz_var, "fake-file" ) )