diff options
author | Seungha Yang <sh.yang@lge.com> | 2017-02-02 21:06:20 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-03-02 20:24:00 +0200 |
commit | 5bd4bc8080525328deb4d1013a96d4ede925e028 (patch) | |
tree | 6e940454afce806c480f405a5013547f262c0f62 /ext/hls/gsthlsdemux.c | |
parent | e28ddbdf77d362e8c124bd8eef8f70495591e829 (diff) | |
download | gstreamer-plugins-bad-5bd4bc8080525328deb4d1013a96d4ede925e028.tar.gz |
hls: Fix various leak on hlsdemux and m3u8
* default_variant should be freed, it holds ref.
* GstHLSMedia holds GstM3U8 ref.
* gst_m3u8_get_next_fragment() increases ref count.
https://bugzilla.gnome.org/show_bug.cgi?id=778073
Diffstat (limited to 'ext/hls/gsthlsdemux.c')
-rw-r--r-- | ext/hls/gsthlsdemux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 32df21476..574485b54 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -1114,6 +1114,8 @@ gst_hls_demux_update_fragment_info (GstAdaptiveDemuxStream * stream) if (discont) stream->discont = TRUE; + gst_m3u8_media_file_unref (file); + return GST_FLOW_OK; } |