mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
uridecodebin3: Protect against NULL uri/suburi
Fixes #1625 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3511>
This commit is contained in:
parent
949b12c7f5
commit
36c3bb0d05
1 changed files with 6 additions and 0 deletions
|
@ -1672,6 +1672,9 @@ free_play_item (GstURIDecodeBin3 * dec, GstPlayItem * item)
|
||||||
static void
|
static void
|
||||||
play_item_set_uri (GstPlayItem * item, const gchar * uri)
|
play_item_set_uri (GstPlayItem * item, const gchar * uri)
|
||||||
{
|
{
|
||||||
|
if (!uri)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!item->main_item) {
|
if (!item->main_item) {
|
||||||
item->main_item =
|
item->main_item =
|
||||||
new_source_item (item->uridecodebin, item, g_strdup (uri));
|
new_source_item (item->uridecodebin, item, g_strdup (uri));
|
||||||
|
@ -1683,6 +1686,9 @@ play_item_set_uri (GstPlayItem * item, const gchar * uri)
|
||||||
static void
|
static void
|
||||||
play_item_set_suburi (GstPlayItem * item, const gchar * uri)
|
play_item_set_suburi (GstPlayItem * item, const gchar * uri)
|
||||||
{
|
{
|
||||||
|
if (!uri)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!item->sub_item) {
|
if (!item->sub_item) {
|
||||||
item->sub_item = new_source_item (item->uridecodebin, item, g_strdup (uri));
|
item->sub_item = new_source_item (item->uridecodebin, item, g_strdup (uri));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue