[Bug 779466] v4l2: improve v4l2dec auto-negotiation

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 5 13:51:41 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=779466

--- Comment #14 from Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> ---
Review of attachment 347046:
 --> (https://bugzilla.gnome.org/review?bug=779466&attachment=347046)

::: sys/v4l2/gstv4l2videodec.c
@@ +754,3 @@

+  if (GST_CLOCK_TIME_IS_VALID (self->v4l2capture->duration)) {
+    GST_DEBUG_OBJECT (self, "Setting latency: %u * %llu",

%llu for unsigned 64bit is 32bit CPU specific here. I'll correct it locally, I
just wanted you to know. GLib and GStreamer provides defines to help with that.

"%" GST_TIME_FORMAT, GST_TIME_ARGS (time)

Will print human readable from of time, splitting days, hours, minute, seconds,
fraction.

"%" G_GUINT64_FORMAT, time

Will automatically pick from %lu/%llu depending on the platform. There is many
other _FORMAT definition you can use to write portable code.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list