summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-03-12 19:30:48 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-03-12 19:30:48 +0100
commit6631f50d59cbabc2f3a6e450ccd4711ee5d2aa39 (patch)
tree67af3d292b29635965b5fb33d76feb89186bee9b /gst
parent0b441d7611f283acd5c85b0572931f99bc8f4350 (diff)
camerabin: activate video bin before feeding data to it
Fixes #612615.
Diffstat (limited to 'gst')
-rw-r--r--gst/camerabin/gstcamerabin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c
index c7af7a491..cf02ad075 100644
--- a/gst/camerabin/gstcamerabin.c
+++ b/gst/camerabin/gstcamerabin.c
@@ -1536,6 +1536,8 @@ gst_camerabin_start_video_recording (GstCameraBin * camera)
camera->capturing = TRUE;
g_mutex_unlock (camera->capture_mutex);
gst_element_set_locked_state (camera->vidbin, FALSE);
+ /* ensure elements activated before feeding data into it */
+ state_ret = gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PAUSED);
g_object_set (G_OBJECT (camera->src_out_sel), "resend-latest", FALSE,
"active-pad", camera->pad_src_vid, NULL);