Commit 0fb43ae1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

voc: fix callback init order

parent b2354571
......@@ -108,8 +108,6 @@ static int Open( vlc_object_t * p_this )
if( vlc_stream_Read( p_demux->s, NULL, i_data_offset ) < i_data_offset )
return VLC_EGENERIC;
p_demux->pf_demux = Demux;
p_demux->pf_control = Control;
p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) );
if( p_sys == NULL )
return VLC_ENOMEM;
......@@ -122,11 +120,12 @@ static int Open( vlc_object_t * p_this )
date_Set( &p_sys->pts, 1 );
es_format_Init( &p_sys->fmt, AUDIO_ES, 0 );
p_demux->pf_demux = Demux;
p_demux->pf_control = Control;
return VLC_SUCCESS;
}
static int fmtcmp( es_format_t *ofmt, es_format_t *nfmt )
{
return (ofmt->audio.i_bitspersample != nfmt->audio.i_bitspersample)
......
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