diff options
author | Lasse Laukkanen <ext-lasse.2.laukkanen@nokia.com> | 2009-06-16 18:12:29 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-06-24 18:58:16 +0300 |
commit | 8a39d280029bf98ebf499876604692dcf41e0ee0 (patch) | |
tree | fc1e283623cf32e1b51d4fa3d964164c9414187c /gst/camerabin | |
parent | a265e4d2b380ecae7a53996c55a42689912e5488 (diff) | |
download | gst-plugins-bad-8a39d280029bf98ebf499876604692dcf41e0ee0.tar.gz gst-plugins-bad-8a39d280029bf98ebf499876604692dcf41e0ee0.tar.bz2 gst-plugins-bad-8a39d280029bf98ebf499876604692dcf41e0ee0.zip |
camerabin: set image bin to PAUSED when starting capture
Set image bin to PAUSED also when starting capture using photography
interface.
Diffstat (limited to 'gst/camerabin')
-rw-r--r-- | gst/camerabin/gstcamerabin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index 8e53db4c..3809a037 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -1528,9 +1528,9 @@ img_capture_prepared (gpointer data, GstCaps * caps) g_object_set (G_OBJECT (camera->src_out_sel), "resend-latest", FALSE, "active-pad", camera->pad_src_img, NULL); - if (!GST_CAMERABIN_IMAGE (camera->imgbin)->elements_created) { - gst_element_set_state (camera->imgbin, GST_STATE_READY); - } + /* We need to set image bin to PAUSED or buffer-allocs will fail */ + GST_DEBUG_OBJECT (camera, "setting image bin to PAUSED"); + gst_element_set_state (camera->imgbin, GST_STATE_PAUSED); } /* |