summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorWonchul Lee <chul0812@gmail.com>2015-03-20 17:45:03 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-03-23 09:15:02 +0100
commitb45941219e886eb23002bb3969081bdd60d85106 (patch)
tree8ba8dcb120e342b9428a2cf6468155e8814830f2 /ext
parentc363ea5e483be4029d9651ed0410f3c10248e9c5 (diff)
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
Diffstat (limited to 'ext')
-rw-r--r--ext/ogg/gstoggdemux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index 86615bf5f..e6eab1bb2 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,