mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
hlsdemux2: Fix buffer leak when resynching
Unref the buffer in gst_hls_demux_handle_buffer() when returning GST_ADAPTIVE_DEMUX_FLOW_LOST_SYNC Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2849>
This commit is contained in:
parent
62c7402dbb
commit
91e43048cf
1 changed files with 2 additions and 0 deletions
|
@ -1484,6 +1484,8 @@ gst_hls_demux_handle_buffer (GstAdaptiveDemux * demux,
|
||||||
*/
|
*/
|
||||||
if (hls_stream->current_segment == NULL) {
|
if (hls_stream->current_segment == NULL) {
|
||||||
GST_WARNING_OBJECT (stream, "Lost sync");
|
GST_WARNING_OBJECT (stream, "Lost sync");
|
||||||
|
/* Drop the buffer */
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
return GST_ADAPTIVE_DEMUX_FLOW_LOST_SYNC;
|
return GST_ADAPTIVE_DEMUX_FLOW_LOST_SYNC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue