mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-01 17:31:10 +00:00
hlsdemux: a few leak fixes
This commit is contained in:
parent
b533ad8502
commit
b5860af143
1 changed files with 4 additions and 0 deletions
|
@ -932,11 +932,13 @@ retry:
|
||||||
|
|
||||||
buf = gst_fragment_get_buffer (download);
|
buf = gst_fragment_get_buffer (download);
|
||||||
playlist = gst_hls_src_buf_to_utf8_playlist (buf);
|
playlist = gst_hls_src_buf_to_utf8_playlist (buf);
|
||||||
|
gst_buffer_unref (buf);
|
||||||
|
|
||||||
if (playlist == NULL) {
|
if (playlist == NULL) {
|
||||||
GST_WARNING_OBJECT (demux,
|
GST_WARNING_OBJECT (demux,
|
||||||
"Failed to validate variant playlist encoding");
|
"Failed to validate variant playlist encoding");
|
||||||
g_free (uri);
|
g_free (uri);
|
||||||
|
g_object_unref (download);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -952,6 +954,7 @@ retry:
|
||||||
if (!gst_m3u8_client_update_variant_playlist (demux->client, playlist,
|
if (!gst_m3u8_client_update_variant_playlist (demux->client, playlist,
|
||||||
uri, base_uri)) {
|
uri, base_uri)) {
|
||||||
GST_WARNING_OBJECT (demux, "Failed to update the variant playlist");
|
GST_WARNING_OBJECT (demux, "Failed to update the variant playlist");
|
||||||
|
g_object_unref (download);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -986,6 +989,7 @@ retry:
|
||||||
|
|
||||||
buf = gst_fragment_get_buffer (download);
|
buf = gst_fragment_get_buffer (download);
|
||||||
playlist = gst_hls_src_buf_to_utf8_playlist (buf);
|
playlist = gst_hls_src_buf_to_utf8_playlist (buf);
|
||||||
|
gst_buffer_unref (buf);
|
||||||
g_object_unref (download);
|
g_object_unref (download);
|
||||||
|
|
||||||
if (playlist == NULL) {
|
if (playlist == NULL) {
|
||||||
|
|
Loading…
Reference in a new issue