diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-02-11 18:15:45 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-02-11 18:21:18 +0100 |
commit | 0bb2f9ccb37fac55b3de1451f10686c18a93e727 (patch) | |
tree | 677082a4c911a7ad13dd275740254069f1e7df57 | |
parent | 15a2aac0aaf14dd775cb0a7fd81999cc8ed640f6 (diff) | |
download | gstreamer-plugins-bad-0bb2f9ccb37fac55b3de1451f10686c18a93e727.tar.gz |
hlsdemux: Don't try decryption if an unsupported method is found
-rw-r--r-- | ext/hls/m3u8.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index df9f1d8fd..a5903b89a 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -465,6 +465,11 @@ gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated) continue; } have_iv = TRUE; + } else if (g_str_equal (a, "METHOD")) { + if (!g_str_equal (v, "AES-128")) { + GST_WARNING ("Encryption method %s not supported", v); + continue; + } } } } else if (g_str_has_prefix (data, "#EXTINF:")) { |