Commit f32a5d8a authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

demux:ogg: no need to change the es_format_t before a copy

But we do need to clean the previous value before a copy.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent b93a0d8a
......@@ -2117,8 +2117,7 @@ static void Ogg_CreateES( demux_t *p_demux )
p_stream->b_reinit = false;
p_stream->b_initializing = false;
p_stream->i_pre_skip = 0;
es_format_Change( &p_stream->fmt_old, p_old_stream->fmt.i_cat,
p_old_stream->fmt.i_codec );
es_format_Clean( &p_stream->fmt_old );
es_format_Copy( &p_stream->fmt_old, &p_old_stream->fmt );
bool b_resetdecoder = Ogg_LogicalStreamResetEsFormat( p_demux, p_stream );
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