mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
hlsdemux2: Fix some m3u8 segment leaks
Make sure unref m3u8 segments in some missed paths. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3883>
This commit is contained in:
parent
7b9547a119
commit
857541ae07
1 changed files with 2 additions and 0 deletions
|
@ -2330,11 +2330,13 @@ gst_hls_demux_stream_update_media_playlist (GstHLSDemux * demux,
|
|||
GST_DEBUG_OBJECT (stream,
|
||||
"Partial segments we were playing became unavailable. Will try and resync");
|
||||
stream->in_partial_segments = FALSE;
|
||||
gst_m3u8_media_segment_unref (new_segment);
|
||||
new_segment = NULL;
|
||||
} else if (stream->part_idx >= new_segment->partial_segments->len) {
|
||||
GST_DEBUG_OBJECT (stream,
|
||||
"After playlist reload, there are no more partial segments to play in the current segment. Resyncing");
|
||||
stream->in_partial_segments = FALSE;
|
||||
gst_m3u8_media_segment_unref (new_segment);
|
||||
new_segment = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue