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

Marc-André Lureau elmarco at kemper.freedesktop.org
Thu Jul 13 10:38:53 UTC 2017


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

New commits:
commit c62207a28b35b9c3e08ca0a5a8a329c338c293bb
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date:   Thu Jul 13 12:05:14 2017 +0200

    display-gst: fix format error
    
    ../../src/channel-display-gst.c: In function 'handle_pipeline_message':
    ../../src/channel-display-gst.c:289:75: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'gint64 {aka long long int}' [-Werror=format=]
             gchar *filename = g_strdup_printf("spice-gtk-gst-pipeline-debug-%ld-%s",
                                                                             ~~^
                                                                             %I64d
                                               get_stream_id_by_stream(decoder->base.stream->channel,
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                       decoder->base.stream),
                                                                       ~~~~~~~~~~~~~~~~~~~~~
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
    Acked-by: Victor Toso <victortoso at redhat.com>

diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c
index 3cf451b..20d236a 100644
--- a/src/channel-display-gst.c
+++ b/src/channel-display-gst.c
@@ -286,7 +286,7 @@ static gboolean handle_pipeline_message(GstBus *bus, GstMessage *msg, gpointer v
         break;
     }
     case GST_MESSAGE_STREAM_START: {
-        gchar *filename = g_strdup_printf("spice-gtk-gst-pipeline-debug-%ld-%s",
+        gchar *filename = g_strdup_printf("spice-gtk-gst-pipeline-debug-%" G_GINT64_FORMAT "-%s",
                                           get_stream_id_by_stream(decoder->base.stream->channel,
                                                                   decoder->base.stream),
                                           gst_opts[decoder->base.codec_type].name);


More information about the Spice-commits mailing list