projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a265e4d
)
camerabin: set image bin to PAUSED when starting capture
author
Lasse Laukkanen
<ext-lasse.2.laukkanen@nokia.com>
Tue, 16 Jun 2009 15:12:29 +0000
(18:12 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Wed, 24 Jun 2009 15:58:16 +0000
(18:58 +0300)
Set image bin to PAUSED also when starting capture using photography
interface.
gst/camerabin/gstcamerabin.c
patch
|
blob
|
history
diff --git
a/gst/camerabin/gstcamerabin.c
b/gst/camerabin/gstcamerabin.c
index
8e53db4
..
3809a03
100644
(file)
--- 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);
}
/*