From 0f991181418389bd40036f81f531f97d8b9d482a Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 11 Oct 2011 16:27:07 -0300 Subject: [PATCH] camerabin: Prevent audio source from providing clock camerabin's audio source might be put to NULL during its use, so the clock would be lost. Better not allow it to provide a clock at all. --- gst/camerabin/camerabinvideo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst/camerabin/camerabinvideo.c b/gst/camerabin/camerabinvideo.c index 93e570db08..868fdcead5 100644 --- a/gst/camerabin/camerabinvideo.c +++ b/gst/camerabin/camerabinvideo.c @@ -637,6 +637,13 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid) G_CALLBACK (gst_camerabin_drop_eos_probe), vid); gst_object_unref (vid_srcpad); + /* audio source is not always present and might be set to NULL during operation */ + if (vid->aud_src + && g_object_class_find_property (G_OBJECT_GET_CLASS (vid->aud_src), + "provide-clock")) { + g_object_set (vid->aud_src, "provide-clock", FALSE, NULL); + } + GST_DEBUG ("created video elements"); return TRUE;