From 6631f50d59cbabc2f3a6e450ccd4711ee5d2aa39 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 12 Mar 2010 19:30:48 +0100 Subject: [PATCH] camerabin: activate video bin before feeding data to it Fixes #612615. --- gst/camerabin/gstcamerabin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index c7af7a4919..cf02ad075d 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);