summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-02-11 18:15:45 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-02-11 18:21:18 +0100
commit0bb2f9ccb37fac55b3de1451f10686c18a93e727 (patch)
tree677082a4c911a7ad13dd275740254069f1e7df57
parent15a2aac0aaf14dd775cb0a7fd81999cc8ed640f6 (diff)
downloadgstreamer-plugins-bad-0bb2f9ccb37fac55b3de1451f10686c18a93e727.tar.gz
hlsdemux: Don't try decryption if an unsupported method is found
-rw-r--r--ext/hls/m3u8.c5
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:")) {