mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
adaptivedemux2: Allow data dash+xml manifest for uri
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4811>
This commit is contained in:
parent
5716ee3513
commit
513dd2c219
1 changed files with 3 additions and 2 deletions
|
@ -991,11 +991,12 @@ handle_incoming_manifest (GstAdaptiveDemux * demux)
|
||||||
GST_DEBUG_OBJECT (demux, "Fetched manifest at URI: %s (base: %s)",
|
GST_DEBUG_OBJECT (demux, "Fetched manifest at URI: %s (base: %s)",
|
||||||
demux->manifest_uri, GST_STR_NULL (demux->manifest_base_uri));
|
demux->manifest_uri, GST_STR_NULL (demux->manifest_base_uri));
|
||||||
|
|
||||||
if (!g_str_has_prefix (demux->manifest_uri, "http://")
|
if (!g_str_has_prefix (demux->manifest_uri, "data:")
|
||||||
|
&& !g_str_has_prefix (demux->manifest_uri, "http://")
|
||||||
&& !g_str_has_prefix (demux->manifest_uri, "https://")) {
|
&& !g_str_has_prefix (demux->manifest_uri, "https://")) {
|
||||||
GST_ELEMENT_ERROR (demux, STREAM, DEMUX,
|
GST_ELEMENT_ERROR (demux, STREAM, DEMUX,
|
||||||
(_("Invalid manifest URI")),
|
(_("Invalid manifest URI")),
|
||||||
("Manifest URI needs to use either http:// or https://"));
|
("Manifest URI needs to use either data:, http:// or https://"));
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
goto unlock_out;
|
goto unlock_out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue