Commit 656207ac authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: recycle output on format change

avoids dropping current command queue and not recycling
compatible es
parent 0e9356ef
......@@ -80,9 +80,9 @@ void Stream::updateFormat(StreamFormat &newformat)
if( format == newformat && output )
return;
delete output;
output = streamOutputFactory->create(p_demux, newformat, output);
format = newformat;
output = streamOutputFactory->create(p_demux, format);
if(!output)
throw VLC_EGENERIC;
output->setLanguage(language);
......
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