mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
ce5c0b8f92
commit
3342d86d9b
1 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue