[longomatch] Limit the size of the appsrc queue
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Limit the size of the appsrc queue
- Date: Mon, 15 Dec 2014 20:28:52 +0000 (UTC)
commit 314bba5f6944799e753ba75f743db82c14f62d56
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Dec 13 03:21:43 2014 +0100
Limit the size of the appsrc queue
libcesarplayer/gst-camera-capturer.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libcesarplayer/gst-camera-capturer.c b/libcesarplayer/gst-camera-capturer.c
index 391fb6f..2178ca5 100644
--- a/libcesarplayer/gst-camera-capturer.c
+++ b/libcesarplayer/gst-camera-capturer.c
@@ -731,6 +731,8 @@ gst_camera_capturer_create_decoder_bin (GstCameraCapturer * gcc)
gcc->priv->video_appsrc = gst_element_factory_make ("appsrc", "video-appsrc");
v_prev_queue = gst_element_factory_make ("queue2", "video-preview-queue");
+ g_object_set (gcc->priv->video_appsrc, "block", TRUE, "max-bytes",
+ 40 * 1024 * 1024, NULL);
g_object_set (v_queue, "max-size-time", 1 * GST_SECOND, NULL);
g_object_set (v_prev_queue, "max-size-bytes", 0, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]