From dae8d8fd5ac03ee1a295b74297cb5f0522091e49 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Wed, 29 Jun 2011 15:35:42 +0200 Subject: [PATCH] camerabin2: Prepare audiosrc before start-capture If we bring the audio source up to the PAUSED state before emitting the start-capture signal to the camera source, when subequently taking the audio source to the PLAYING state, it will begin capture more quickly. --- gst/camerabin2/gstcamerabin2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index ed79b62837..abdd35386d 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -250,6 +250,7 @@ gst_camera_bin_start_capture (GstCameraBin2 * camerabin) gst_element_sync_state_with_parent (camerabin->audio_capsfilter); gst_element_sync_state_with_parent (camerabin->audio_volume); + gst_element_set_state (camerabin->audio_src, GST_STATE_PAUSED); } } else { gchar *location = NULL;