[longomatch] Cast max-bytes to guint64 correctly
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Cast max-bytes to guint64 correctly
- Date: Mon, 22 Dec 2014 11:46:55 +0000 (UTC)
commit d41b8e91c93cf48465222b63dc03e0b11165d266
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Dec 19 15:40:28 2014 +0100
Cast max-bytes to guint64 correctly
libcesarplayer/gst-camera-capturer.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libcesarplayer/gst-camera-capturer.c b/libcesarplayer/gst-camera-capturer.c
index adf6274..9f046e4 100644
--- a/libcesarplayer/gst-camera-capturer.c
+++ b/libcesarplayer/gst-camera-capturer.c
@@ -550,8 +550,9 @@ gst_camera_capturer_create_splitter_bin (GstCameraCapturer * gcc)
gcc->priv->video_appsrc = gst_element_factory_make ("appsrc", "video-appsrc");
v_queue = gst_element_factory_make ("queue", "video-queue");
- g_object_set (gcc->priv->video_appsrc, "block", TRUE, "max-bytes",
- 20 * 1024 * 1024, NULL);
+ gst_app_src_set_max_bytes ((GstAppSrc*) gcc->priv->video_appsrc,
+ (guint64) 20 * 1024 * 1024);
+ g_object_set (gcc->priv->video_appsrc, "block", TRUE, NULL);
gst_camera_capturer_create_converter_bin (gcc);
gst_bin_add_many (GST_BIN (gcc->priv->splitter_bin),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]