From ff3ef9a92a9438ab85f488d019a50350bd503ea5 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 15 Jul 2009 11:17:36 +0300 Subject: camerabin: leave image/video bin in ready when changing mode --- gst/camerabin/gstcamerabin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst/camerabin') diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index 9d8a14cc..5eace93b 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -954,7 +954,7 @@ gst_camerabin_change_mode (GstCameraBin * camera, gint mode) camera->mode = mode; if (camera->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) { GstStateChangeReturn state_ret; -- cgit v1.2.1