summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2018-08-16 15:21:00 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2018-08-16 16:14:51 -0400
commit8c49fbcac0b03860a20286a0813b7b63d15172c4 (patch)
treea784e215ce0fb3206dc281ade883c541482dd197
parentb23dea4421005cd793018b5b4c18e39faa34fafa (diff)
downloadgstreamer-plugins-bad-8c49fbcac0b03860a20286a0813b7b63d15172c4.tar.gz
dashdemux: Always create the adapter
Worst case it will be empty. This fixes a crash when the base class calls data_received() when the stream is neither is_isobmff or has_isoff_ondemand_profile. https://bugzilla.gnome.org/show_bug.cgi?id=796745
-rw-r--r--ext/dash/gstdashdemux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c
index b2b6b4b13..d011f2310 100644
--- a/ext/dash/gstdashdemux.c
+++ b/ext/dash/gstdashdemux.c
@@ -846,9 +846,7 @@ gst_dash_demux_setup_all_streams (GstDashDemux * demux)
stream->is_isobmff = gst_structure_has_name (s, "video/quicktime")
|| gst_structure_has_name (s, "audio/x-m4a");
stream->first_sync_sample_always_after_moof = TRUE;
- if (stream->is_isobmff
- || gst_mpd_client_has_isoff_ondemand_profile (demux->client))
- stream->adapter = gst_adapter_new ();
+ stream->adapter = gst_adapter_new ();
gst_adaptive_demux_stream_set_caps (GST_ADAPTIVE_DEMUX_STREAM_CAST (stream),
caps);
if (tags)