summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-07-15 11:17:36 +0300
committerStefan Kost <ensonic@users.sf.net>2009-07-15 11:20:30 +0300
commitff3ef9a92a9438ab85f488d019a50350bd503ea5 (patch)
treead6e41d135c0a3e174930a9cb7151921e4a4ba17 /gst
parent27d6b256951ee4d0342715927ec896dc0510b797 (diff)
downloadgst-plugins-bad-ff3ef9a92a9438ab85f488d019a50350bd503ea5.tar.gz
gst-plugins-bad-ff3ef9a92a9438ab85f488d019a50350bd503ea5.tar.bz2
gst-plugins-bad-ff3ef9a92a9438ab85f488d019a50350bd503ea5.zip
camerabin: leave image/video bin in ready when changing mode
Diffstat (limited to 'gst')
-rw-r--r--gst/camerabin/gstcamerabin.c2
1 files changed, 1 insertions, 1 deletions
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;