From e893a8b82e1d239a4e8402e763ab62fdc73240a1 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 22 Sep 2010 21:03:56 -0300 Subject: [PATCH] camerabin: Set queues to silent We currently don't use queues' signals, so set them to silent. --- gst/camerabin/camerabinvideo.c | 5 ++++- gst/camerabin/gstcamerabin.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/camerabin/camerabinvideo.c b/gst/camerabin/camerabinvideo.c index b2715e7b64..834ffcdc43 100644 --- a/gst/camerabin/camerabinvideo.c +++ b/gst/camerabin/camerabinvideo.c @@ -575,6 +575,7 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid) if (!gst_camerabin_add_element (vidbin, vid->video_queue)) { goto error; } + g_object_set (vid->video_queue, "silent", TRUE, NULL); /* Add probe for rewriting video timestamps */ vid->vid_tee_probe_id = gst_pad_add_buffer_probe (vid->tee_video_srcpad, @@ -626,6 +627,7 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid) if (!gst_camerabin_add_element (vidbin, queue)) { goto error; } + g_object_set (queue, "silent", TRUE, NULL); /* Add optional audio conversion and volume elements and raise no errors if adding them fails */ @@ -672,7 +674,8 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid) } /* Set queue leaky, we don't want to block video encoder feed, but prefer leaking view finder buffers instead. */ - g_object_set (G_OBJECT (queue), "leaky", 2, "max-size-buffers", 1, NULL); + g_object_set (G_OBJECT (queue), "leaky", 2, "max-size-buffers", 1, "silent", + TRUE, NULL); /* Set up src ghost pad for video bin */ vid_srcpad = gst_element_get_static_pad (queue, "src"); diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index b4912bbfd8..315ab34ccf 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -734,6 +734,7 @@ camerabin_create_elements (GstCameraBin * camera) but deadlocks must be handled somehow... */ g_object_set (G_OBJECT (camera->img_queue), "max-size-buffers", 0, "max-size-bytes", 0, "max-size-time", G_GUINT64_CONSTANT (0), NULL); + g_object_set (camera->img_queue, "silent", TRUE, NULL); camera->pad_src_queue = gst_element_get_static_pad (camera->img_queue, "src");