mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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
This commit is contained in:
parent
2846ebfc2a
commit
694d9dcde5
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue