mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
uridecodebin3: clear subitem if suburi is set to NULL
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1649 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3730>
This commit is contained in:
parent
211191564e
commit
64c4bfdf7e
1 changed files with 6 additions and 1 deletions
|
@ -1728,8 +1728,13 @@ play_item_set_uri (GstPlayItem * item, const gchar * uri)
|
|||
static void
|
||||
play_item_set_suburi (GstPlayItem * item, const gchar * uri)
|
||||
{
|
||||
if (!uri)
|
||||
if (!uri) {
|
||||
if (item->sub_item) {
|
||||
free_source_item (item->uridecodebin, item->sub_item);
|
||||
item->sub_item = NULL;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (!item->sub_item) {
|
||||
item->sub_item = new_source_item (item->uridecodebin, item, g_strdup (uri));
|
||||
|
|
Loading…
Reference in a new issue