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:
parent
afee3b0301
commit
dae8d8fd5a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user