mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
playbin2: do not try to deactivate an inactive group
A group may have failed to activate due to an error (for instance, having set the URI to a non existent location in about-to-finish). https://bugzilla.gnome.org/show_bug.cgi?id=666395
This commit is contained in:
parent
dd8f9aca92
commit
c433ef9b70
1 changed files with 1 additions and 1 deletions
|
@ -3846,7 +3846,7 @@ save_current_group (GstPlayBin * playbin)
|
|||
/* see if there is a current group */
|
||||
GST_PLAY_BIN_LOCK (playbin);
|
||||
curr_group = playbin->curr_group;
|
||||
if (curr_group && curr_group->valid) {
|
||||
if (curr_group && curr_group->valid && curr_group->active) {
|
||||
/* unlink our pads with the sink */
|
||||
deactivate_group (playbin, curr_group);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue