camerabin: leave image/video bin in ready when changing mode
This commit is contained in:
parent
27d6b25695
commit
ff3ef9a92a
@ -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…
x
Reference in New Issue
Block a user