Skip to content

hlsdemux: Don't double-free variant streams on errors

Edward Hervey requested to merge bilboed/gst-plugins-bad:hlsdoublefree into master

If an error happened switching to a new variant, we switch back to the previous one ... except it will be unreffed when setting it.

In order to avoid such issues, keep a reference to the old variant until we're sure we don't need it anymore

Fixes cases of double-free on variants and its contents

Merge request reports