mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue