mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
camerabin2: Prevent audio source from providing clock
The audio source inside camerabin2 is put to READY and back to PLAYING when starting capture, causing the pipeline to lose its clock. As camerabin2 isn't put to PAUSED->PLAYING again during this, a new clock isn't selected for elements.
This commit is contained in:
parent
2609427ada
commit
7f720ed606
1 changed files with 6 additions and 2 deletions
|
@ -1381,6 +1381,10 @@ gst_camera_bin_create_elements (GstCameraBin2 * camera)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new_audio_src) {
|
if (new_audio_src) {
|
||||||
|
if (g_object_class_find_property (G_OBJECT_GET_CLASS (camera->audio_src),
|
||||||
|
"provide-clock")) {
|
||||||
|
g_object_set (camera->audio_src, "provide-clock", FALSE, NULL);
|
||||||
|
}
|
||||||
gst_bin_add (GST_BIN_CAST (camera), gst_object_ref (camera->audio_src));
|
gst_bin_add (GST_BIN_CAST (camera), gst_object_ref (camera->audio_src));
|
||||||
gst_bin_add (GST_BIN_CAST (camera), gst_object_ref (camera->audio_volume));
|
gst_bin_add (GST_BIN_CAST (camera), gst_object_ref (camera->audio_volume));
|
||||||
gst_bin_add (GST_BIN_CAST (camera),
|
gst_bin_add (GST_BIN_CAST (camera),
|
||||||
|
|
Loading…
Reference in a new issue