[Bug 793103] v4l2 compilation failure on Raspberry Pi 3 Raspbian latest

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Feb 26 11:57:42 UTC 2018


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

Carlos Rafael Giani <dv at pseudoterminal.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dv at pseudoterminal.org

--- Comment #11 from Carlos Rafael Giani <dv at pseudoterminal.org> ---
Created attachment 368930
  --> https://bugzilla.gnome.org/attachment.cgi?id=368930&action=edit
patch with function wrappers

I also had this problem when cross-compiling gst-plugins-good with Yocto for an
i.MX6 machine.

I think assigning system calls like close(), read() etc. directly to function
pointers is unstable. So, instead, I add here simple wrapper functions that (a)
are guaranteed to have a definition that is compatible with the function
pointers and (b) internally just call the actual function.

I did not add a wrapper for ioctl(), because at the moment, I am unsure how to
forward the varags properly. There seems to be no safe platform neutral way of
doing this. I looked at how libv4l2 does it, but this library is known for
being bug ridden. And using syscall() directly, I don't know if this is okay.

-- 
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