hlsdemux: Don't try decryption if an unsupported method is found
authorSebastian Dröge <sebastian@centricular.com>
Tue, 11 Feb 2014 17:15:45 +0000 (18:15 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 11 Feb 2014 17:21:18 +0000 (18:21 +0100)
ext/hls/m3u8.c

index df9f1d8fd5e0adbfa29554bbf594619c1d8d025b..a5903b89a6b878ac2af61223a70ff93e395daac8 100644 (file)
@@ -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:")) {