mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
camerabin: leave image/video bin in ready when changing mode
This commit is contained in:
parent
27d6b25695
commit
ff3ef9a92a
1 changed files with 1 additions and 1 deletions
|
@ -954,7 +954,7 @@ gst_camerabin_change_mode (GstCameraBin * camera, gint mode)
|
||||||
camera->mode = mode;
|
camera->mode = mode;
|
||||||
if (camera->active_bin) {
|
if (camera->active_bin) {
|
||||||
GST_DEBUG_OBJECT (camera, "stopping active bin");
|
GST_DEBUG_OBJECT (camera, "stopping active bin");
|
||||||
gst_element_set_state (camera->active_bin, GST_STATE_NULL);
|
gst_element_set_state (camera->active_bin, GST_STATE_READY);
|
||||||
}
|
}
|
||||||
if (camera->mode == MODE_IMAGE) {
|
if (camera->mode == MODE_IMAGE) {
|
||||||
GstStateChangeReturn state_ret;
|
GstStateChangeReturn state_ret;
|
||||||
|
|
Loading…
Reference in a new issue