mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
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:
parent
c363ea5e48
commit
b45941219e
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue