From: Lasse Laukkanen Date: Tue, 16 Jun 2009 15:12:29 +0000 (+0300) Subject: camerabin: set image bin to PAUSED when starting capture X-Git-Tag: 1.19.3~507^2~18498 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a39d280029bf98ebf499876604692dcf41e0ee0;p=platform%2Fupstream%2Fgstreamer.git camerabin: set image bin to PAUSED when starting capture Set image bin to PAUSED also when starting capture using photography interface. --- diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index 8e53db4..3809a03 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); } /*