From 74c2b70865c01c7afe65717f581e166c74ce8910 Mon Sep 17 00:00:00 2001 From: Lukas Karas Date: Wed, 19 Oct 2011 18:33:58 +0200 Subject: [PATCH] explicit set video queue to 500ms (sender) --- src/backend/voip/callchannelhandler.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/backend/voip/callchannelhandler.cpp b/src/backend/voip/callchannelhandler.cpp index b19a078..50bd65a 100644 --- a/src/backend/voip/callchannelhandler.cpp +++ b/src/backend/voip/callchannelhandler.cpp @@ -550,7 +550,15 @@ namespace MaknetoBackend { qDebug() << "Could not make some of the video bin elements"; return false; } - + + try { + // TODO: queue size should be configurable + queue->setProperty("max-size-time", 500l * 1000000l); // in nanoseconds (500ms) + queue2->setProperty("max-size-time", 500l * 1000000l); // in nanoseconds (500ms) + } catch (const std::logic_error & error) { + qDebug() << "FIXME: Element queue does not support max-size-time property"; + } + QGst::Structure capsStruct("video/x-raw-yuv"); capsStruct.setValue("width", 320); capsStruct.setValue("height", 240); -- 2.11.4.GIT