diff options
author | Thiago Santos <thiago.sousa.santos@collabora.com> | 2011-10-11 16:27:07 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.com> | 2011-10-11 16:27:07 -0300 |
commit | 0f991181418389bd40036f81f531f97d8b9d482a (patch) | |
tree | 68564731ca69b3a148eaa643e6e7f0b715341886 | |
parent | 2c4bc6134c554d08f39af7520262084199462b39 (diff) | |
download | gstreamer-plugins-bad-0f991181418389bd40036f81f531f97d8b9d482a.tar.gz |
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.
-rw-r--r-- | gst/camerabin/camerabinvideo.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/camerabin/camerabinvideo.c b/gst/camerabin/camerabinvideo.c index 93e570db0..868fdcead 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; |