diff options
author | Wonchul Lee <chul0812@gmail.com> | 2015-03-20 17:45:03 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-03-23 09:15:02 +0100 |
commit | b45941219e886eb23002bb3969081bdd60d85106 (patch) | |
tree | 8ba8dcb120e342b9428a2cf6468155e8814830f2 /ext | |
parent | c363ea5e483be4029d9651ed0410f3c10248e9c5 (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.c | 5 |
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, |