mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
playbin: free group->suburi on failure
If suburidecodebin is failed to negotiate (e.g file does not exist) then free internal suburi variable so that 'current-suburi' property returns correct status. https://bugzilla.gnome.org/show_bug.cgi?id=751118
This commit is contained in:
parent
a5dcce98aa
commit
bcc9021071
1 changed files with 2 additions and 0 deletions
|
@ -5313,6 +5313,8 @@ activate_group (GstPlayBin * playbin, GstSourceGroup * group, GstState target)
|
||||||
group->sub_pending = FALSE;
|
group->sub_pending = FALSE;
|
||||||
}
|
}
|
||||||
gst_element_set_state (suburidecodebin, GST_STATE_READY);
|
gst_element_set_state (suburidecodebin, GST_STATE_READY);
|
||||||
|
g_free (group->suburi);
|
||||||
|
group->suburi = NULL;
|
||||||
GST_SOURCE_GROUP_UNLOCK (group);
|
GST_SOURCE_GROUP_UNLOCK (group);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue