[Spice-commits] src/channel-display-gst.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Tue Jan 30 16:56:59 UTC 2018

 src/channel-display-gst.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5dd5d4c0b4bf06c85cb1e0ecfac85b1294f269c4
Author: Javier Celaya <javier.celaya at flexvdi.com>
Date:   Tue Jan 30 17:40:41 2018 +0100

    Fix setting appsrc properties in i686 arch
    The "max-bytes" property of the appsrc GStreamer element expects a
    64-bit value. Calling:
    g_object_set(source, "max-bytes", 0, NULL);
    in a 32-bit architecture ends up with a wrong value, it must be cast to
    a gint64:
    g_object_set(source, "max-bytes", G_GINT64_CONSTANT(0), NULL);
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c
index f978602..c6280d3 100644
--- a/src/channel-display-gst.c
+++ b/src/channel-display-gst.c
@@ -333,7 +333,7 @@ static void app_source_setup(GstElement *pipeline G_GNUC_UNUSED,
                  "caps", caps,
                  "is-live", TRUE,
                  "format", GST_FORMAT_TIME,
-                 "max-bytes", 0,
+                 "max-bytes", G_GINT64_CONSTANT(0),
                  "block", TRUE,

More information about the Spice-commits mailing list