mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
oggdemux: fix push mode chain leak
When I first implemented push mode seeking, I removed the chain freeing there as it could be used later. The current code does not seem to do that though, so I'm restoring the previous freeing, which plugs the leak while apparently not reintroducing use of freed data with chained and normal files, both with gst-launch playbin2 and Totem.
This commit is contained in:
parent
426f991b52
commit
9f4b71b2a7
1 changed files with 6 additions and 4 deletions
|
@ -2436,10 +2436,12 @@ gst_ogg_demux_deactivate_current_chain (GstOggDemux * ogg)
|
||||||
|
|
||||||
pad->added = FALSE;
|
pad->added = FALSE;
|
||||||
}
|
}
|
||||||
/* With push mode seeking implemented, we can now seek back to the chain,
|
|
||||||
so we do not destroy it */
|
/* if we cannot seek back to the chain, we can destroy the chain
|
||||||
GST_DEBUG_OBJECT (ogg, "Resetting current chain");
|
* completely */
|
||||||
ogg->current_chain = NULL;
|
if (!ogg->pullmode) {
|
||||||
|
gst_ogg_chain_free (chain);
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue