diff options
-rw-r--r-- | ext/hls/gsthlsdemux.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index b11d07edb..ff07a44bf 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -1537,10 +1537,12 @@ retry: buf = gst_fragment_get_buffer (download); playlist = gst_hls_src_buf_to_utf8_playlist (buf); + gst_buffer_unref (buf); if (playlist == NULL) { GST_WARNING_OBJECT (demux, "Failed to validate variant playlist encoding"); + g_object_unref (download); return FALSE; } @@ -1555,6 +1557,7 @@ retry: if (!gst_m3u8_client_update_variant_playlist (demux->client, playlist, uri, base_uri)) { GST_WARNING_OBJECT (demux, "Failed to update the variant playlist"); + g_object_unref (download); return FALSE; } @@ -1586,6 +1589,7 @@ retry: buf = gst_fragment_get_buffer (download); playlist = gst_hls_src_buf_to_utf8_playlist (buf); + gst_buffer_unref (buf); g_object_unref (download); if (playlist == NULL) { |