mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
playbin2: remove uridecodebin from bin when it fails to switch to PAUSED
This avoids that bin being leftover and being found when reusing playbin2, and fixes restarting on a new URI after failing to activate with a previous URI. https://bugzilla.gnome.org/show_bug.cgi?id=673888
This commit is contained in:
parent
9d6967fe9a
commit
512f96906e
1 changed files with 2 additions and 0 deletions
|
@ -3971,6 +3971,8 @@ uridecodebin_failure:
|
||||||
}
|
}
|
||||||
group->video_sink = NULL;
|
group->video_sink = NULL;
|
||||||
|
|
||||||
|
gst_bin_remove (GST_BIN_CAST (playbin), uridecodebin);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (playbin, "failed state change of uridecodebin");
|
GST_DEBUG_OBJECT (playbin, "failed state change of uridecodebin");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue