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.
This commit is contained in:
Robert Swain 2011-06-29 15:35:42 +02:00 committed by Thiago Santos
parent afee3b0301
commit dae8d8fd5a

View file

@ -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;