qtdemux: Avoid warning when reporting about decryptors
authorPhilippe Normand <philn@igalia.com>
Fri, 22 Jun 2018 15:00:11 +0000 (16:00 +0100)
committerPhilippe Normand <philn@igalia.com>
Wed, 17 Oct 2018 14:51:32 +0000 (15:51 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=796652

gst/isomp4/qtdemux.c

index 406c6c8..74d8ca6 100644 (file)
@@ -8113,7 +8113,9 @@ gst_qtdemux_request_protection_context (GstQTDemux * qtdemux,
       qtdemux->protection_system_ids->len - 1);
   GST_TRACE_OBJECT (qtdemux, "detected %u protection systems, we have "
       "decryptors for %u of them, running context request",
-      qtdemux->protection_system_ids->len, g_strv_length (filtered_sys_ids));
+      qtdemux->protection_system_ids->len,
+      filtered_sys_ids ? g_strv_length (filtered_sys_ids) : 0);
+
 
   if (stream->protection_scheme_event_queue.length) {
     GST_TRACE_OBJECT (qtdemux, "using stream event queue, length %u",