hlsdemux: Fix accessing invalidated memory
authorThomas Bluemel <tbluemel@control4.com>
Thu, 2 Oct 2014 16:37:57 +0000 (10:37 -0600)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 7 Oct 2014 12:22:27 +0000 (15:22 +0300)
commitc87835a79ff31d8d9fe1f71726fb8d466136c21f
tree6e56f2d8131e903e0d6b17a67d7201149b128c76
parenta2b82ba5414ecde10a439b66fd035e456b90770c
hlsdemux: Fix accessing invalidated memory

In gst_hls_demux_get_next_fragment() the next fragment URI gets
stored in next_fragment_uri, but the gst_hls_demux_updates_loop()
can at any time update the playlist, rendering this string invalid.
Therefore, any data (like key, iv, URIs) that is taken from a
GstM3U8Client needs to be copied. In addition, accessing the
internals of a GstM3U8Client requires locking.

https://bugzilla.gnome.org/show_bug.cgi?id=737793
ext/hls/gsthlsdemux.c [changed mode: 0644->0755]
ext/hls/gsthlsdemux.h [changed mode: 0644->0755]
ext/hls/m3u8.c [changed mode: 0644->0755]
ext/hls/m3u8.h [changed mode: 0644->0755]