Commit 70496699 authored by Gildas Bazin's avatar Gildas Bazin

* modules/demux/flac.c: fixed last commit.

parent fdccf31c
...@@ -150,6 +150,10 @@ static int Open( vlc_object_t * p_this ) ...@@ -150,6 +150,10 @@ static int Open( vlc_object_t * p_this )
module_Need( p_sys->p_packetizer, "packetizer", NULL, 0 ); module_Need( p_sys->p_packetizer, "packetizer", NULL, 0 );
if( !p_sys->p_packetizer->p_module ) if( !p_sys->p_packetizer->p_module )
{ {
if( p_sys->p_packetizer->fmt_in.p_extra )
free( p_sys->p_packetizer->fmt_in.p_extra );
vlc_object_destroy( p_sys->p_packetizer );
msg_Err( p_demux, "cannot find flac packetizer" ); msg_Err( p_demux, "cannot find flac packetizer" );
goto error; goto error;
} }
...@@ -159,12 +163,6 @@ static int Open( vlc_object_t * p_this ) ...@@ -159,12 +163,6 @@ static int Open( vlc_object_t * p_this )
return VLC_SUCCESS; return VLC_SUCCESS;
error: error:
if( p_sys != NULL && p_sys->p_packetizer )
{
if( p_sys->p_packetizer->fmt_in.p_extra )
free( p_sys->p_packetizer->fmt_in.p_extra );
vlc_object_destroy( p_sys->p_packetizer );
}
if( p_meta ) if( p_meta )
{ {
int b_seekable; int b_seekable;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment