qtdemux: fix printf warnings on OSX

Cast variables passed to printf to avoid warnings about incorrect
formats (most likely caused by sizeof returning a size_t).

Fixes #597348.
This commit is contained in:
Robert Swain 2009-10-04 21:59:24 +02:00 committed by Tim-Philipp Müller
parent 4590daf202
commit c7b5df91a9

View file

@ -3629,7 +3629,8 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream,
goto no_samples; goto no_samples;
GST_DEBUG_OBJECT (qtdemux, "stsz sample_size 0, allocating n_samples %u " GST_DEBUG_OBJECT (qtdemux, "stsz sample_size 0, allocating n_samples %u "
"(%u MB)", n_samples, (n_samples * sizeof (QtDemuxSample)) >> 20); "(%u MB)", n_samples,
(guint) (n_samples * sizeof (QtDemuxSample)) >> 20);
if (n_samples >= QTDEMUX_MAX_SAMPLE_INDEX_SIZE / sizeof (QtDemuxSample)) if (n_samples >= QTDEMUX_MAX_SAMPLE_INDEX_SIZE / sizeof (QtDemuxSample))
goto index_too_big; goto index_too_big;
@ -3859,7 +3860,7 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream,
goto no_samples; goto no_samples;
GST_DEBUG_OBJECT (qtdemux, "allocating n_samples %u (%u MB)", n_samples, GST_DEBUG_OBJECT (qtdemux, "allocating n_samples %u (%u MB)", n_samples,
(n_samples * sizeof (QtDemuxSample)) >> 20); (guint) (n_samples * sizeof (QtDemuxSample)) >> 20);
if (n_samples >= QTDEMUX_MAX_SAMPLE_INDEX_SIZE / sizeof (QtDemuxSample)) if (n_samples >= QTDEMUX_MAX_SAMPLE_INDEX_SIZE / sizeof (QtDemuxSample))
goto index_too_big; goto index_too_big;