Revert "qtdemux: redundant check in PIFF parser"
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Tue, 12 Apr 2016 10:37:36 +0000 (11:37 +0100)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Tue, 12 Apr 2016 10:37:36 +0000 (11:37 +0100)
This reverts commit 41e10524f3babdd92aac8c8c9d5b9cdf184c2d4e.

gst/isomp4/qtdemux.c

index bbfed6f..77d3272 100644 (file)
@@ -2467,6 +2467,9 @@ qtdemux_parse_piff (GstQTDemux * qtdemux, const guint8 * buffer, gint length,
   const gchar *system_id;
   gboolean uses_sub_sample_encryption = FALSE;
 
+  if (!qtdemux->streams)
+    return;
+
   stream = qtdemux->streams[0];
 
   structure = gst_caps_get_structure (stream->caps, 0);