Commit 3342d86d authored by Nicolas Dufresne's avatar Nicolas Dufresne

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.
parent ce5c0b8f
......@@ -753,9 +753,10 @@ gst_v4l2_video_dec_decide_allocation (GstVideoDecoder * decoder,
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 " (%"
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");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment