Revert "qtdemux: redundant check in PIFF parser"

This reverts commit 41e10524f3.
This commit is contained in:
Luis de Bethencourt 2016-04-12 11:37:36 +01:00
parent 41e10524f3
commit 574bf8e02f

View file

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