From b45941219e886eb23002bb3969081bdd60d85106 Mon Sep 17 00:00:00 2001 From: Wonchul Lee Date: Fri, 20 Mar 2015 17:45:03 +0900 Subject: [PATCH] oggdemux: Fix compiler warning gstoggdemux.c:1233:11: error: format specifies type 'long' but the argument has type 'ogg_int64_t' (aka 'long long') [-Werror,-Wformat] granule); ^~~~~~~ https://bugzilla.gnome.org/show_bug.cgi?id=746512 --- ext/ogg/gstoggdemux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 86615bf5fc..e6eab1bb23 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -1225,8 +1225,9 @@ gst_ogg_demux_setup_first_granule (GstOggDemux * ogg, GstOggPad * pad, if (pad->current_granule == -1) { ogg_int64_t granpos = ogg_page_granulepos (page); if (granpos > 0) { - ogg_int64_t granule = - gst_ogg_stream_granulepos_to_granule (&pad->map, granpos), duration; + gint64 granule = + (gint64) gst_ogg_stream_granulepos_to_granule (&pad->map, granpos); + gint64 duration; int packets = ogg_page_packets (page), n; GST_DEBUG_OBJECT (pad, "This page completes %d packets, granule %" G_GINT64_FORMAT, packets,