qtdemux: fix printf format warning on mingw32
Make win32 build bot happy again, and nicefy output while we're at it. qtdemux.c: In function 'qtdemux_parse_trun': qtdemux.c:2162:3: error: format '%lu' expects type 'long unsigned int', but argument 9 has type 'guint32'
This commit is contained in:
parent
285235a10a
commit
06364a54ce
@ -2159,8 +2159,9 @@ qtdemux_parse_trun (GstQTDemux * qtdemux, GstByteReader * trun,
|
|||||||
QTDEMUX_MAX_SAMPLE_INDEX_SIZE / sizeof (QtDemuxSample))
|
QTDEMUX_MAX_SAMPLE_INDEX_SIZE / sizeof (QtDemuxSample))
|
||||||
goto index_too_big;
|
goto index_too_big;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (qtdemux, "allocating n_samples %u (%lu MB)",
|
GST_DEBUG_OBJECT (qtdemux, "allocating n_samples %u * %u (%.2f MB)",
|
||||||
stream->n_samples, (stream->n_samples * sizeof (QtDemuxSample)) >> 20);
|
stream->n_samples, (guint) sizeof (QtDemuxSample),
|
||||||
|
stream->n_samples * sizeof (QtDemuxSample) / (1024.0 * 1024.0));
|
||||||
|
|
||||||
/* create a new array of samples if it's the first sample parsed */
|
/* create a new array of samples if it's the first sample parsed */
|
||||||
if (stream->n_samples == 0)
|
if (stream->n_samples == 0)
|
||||||
@ -5316,10 +5317,9 @@ qtdemux_stbl_init (GstQTDemux * qtdemux, QtDemuxStream * stream, GNode * stbl)
|
|||||||
goto corrupt_file;
|
goto corrupt_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (qtdemux,
|
GST_DEBUG_OBJECT (qtdemux, "allocating n_samples %u * %u (%.2f MB)",
|
||||||
"allocating n_samples %u * %" G_GSIZE_FORMAT " = (%u MB)",
|
stream->n_samples, (guint) sizeof (QtDemuxSample),
|
||||||
stream->n_samples, sizeof (QtDemuxSample),
|
stream->n_samples * sizeof (QtDemuxSample) / (1024.0 * 1024.0));
|
||||||
(guint) (stream->n_samples * sizeof (QtDemuxSample)) >> 20);
|
|
||||||
|
|
||||||
if (stream->n_samples >=
|
if (stream->n_samples >=
|
||||||
QTDEMUX_MAX_SAMPLE_INDEX_SIZE / sizeof (QtDemuxSample)) {
|
QTDEMUX_MAX_SAMPLE_INDEX_SIZE / sizeof (QtDemuxSample)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user