diff options
author | Lasse Laukkanen <ext-lasse.2.laukkanen@nokia.com> | 2009-04-23 18:15:43 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-06-05 15:51:30 +0300 |
commit | cad76384b3bb676dfc0fc3b8e339798264b0b0f2 (patch) | |
tree | 6e388d5f61716fe41820b1fe10ffe46e29521124 /gst | |
parent | 3ff71282937b7ab749d2445496ccba4d3b680a5e (diff) | |
download | gst-plugins-bad-cad76384b3bb676dfc0fc3b8e339798264b0b0f2.tar.gz gst-plugins-bad-cad76384b3bb676dfc0fc3b8e339798264b0b0f2.tar.bz2 gst-plugins-bad-cad76384b3bb676dfc0fc3b8e339798264b0b0f2.zip |
camerabin: limit the size of video bin queue leading to view finder
We don't want to show old buffers in view finder.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/camerabin/camerabinvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/camerabin/camerabinvideo.c b/gst/camerabin/camerabinvideo.c index 14a95064..4729d1e4 100644 --- a/gst/camerabin/camerabinvideo.c +++ b/gst/camerabin/camerabinvideo.c @@ -641,7 +641,7 @@ 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, NULL); + g_object_set (G_OBJECT (queue), "leaky", 2, "max-size-buffers", 1, NULL); /* Set up src ghost pad for video bin */ vid_srcpad = gst_element_get_static_pad (queue, "src"); |