v4l2videodec: Fix 32bit only printf format

The previous patch was using %llu for 64bits printf, which is 32bit
specific. We also trace the latency in time human readable form now.
This commit is contained in:
Nicolas Dufresne 2017-04-05 09:46:31 -04:00
parent ce5c0b8f92
commit 3342d86d9b

View file

@ -753,9 +753,10 @@ gst_v4l2_video_dec_decide_allocation (GstVideoDecoder * decoder,
query);
if (GST_CLOCK_TIME_IS_VALID (self->v4l2capture->duration)) {
GST_DEBUG_OBJECT (self, "Setting latency: %u * %llu",
self->v4l2capture->min_buffers, self->v4l2capture->duration);
latency = self->v4l2capture->min_buffers * self->v4l2capture->duration;
GST_DEBUG_OBJECT (self, "Setting latency: %" GST_TIME_FORMAT " (%"
G_GUINT32_FORMAT " * %" G_GUINT64_FORMAT, GST_TIME_ARGS (latency),
self->v4l2capture->min_buffers, self->v4l2capture->duration);
gst_video_decoder_set_latency (decoder, latency, latency);
} else {
GST_WARNING_OBJECT (self, "Duration invalid, not setting latency");