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
This commit is contained in:
Wonchul Lee 2015-03-20 17:45:03 +09:00 committed by Sebastian Dröge
parent c363ea5e48
commit b45941219e

View file

@ -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,