<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 28 juil. 2017 4:26 AM, "Kirill Novichikhin" <<a href="mailto:kirill.novichikhin@sarov-itc.ru">kirill.novichikhin@sarov-itc.ru</a>> a écrit :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+ v4l2object->mmap = mmap;<br>
This change breaks build on arm/32 (probably other 32bit targets)<br>
Since last arg of mmap is __off_t and last arg of v4l2_mmap is uint64_t, a wrapper is probably needed.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">That's interesting, I blindly copied the definition from libv4l2 headers, I didn't expect that. Please file bug and attach your patch at <a href="http://bugs.gnome.org">bugs.gnome.org</a> I'll have a loop on Monday.</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I worked around it with the following patch:<br>
<br>
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c<br>
index c6886b1..9364c83 100644<br>
--- a/sys/v4l2/gstv4l2object.c<br>
+++ b/sys/v4l2/gstv4l2object.c<br>
@@ -454,6 +454,10 @@ gst_v4l2_object_install_m2m_<wbr>properties_helper (GObjectClass * gobject_class)<br>
GST_TYPE_STRUCTURE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));<br>
}<br>
<br>
+static void* mmap_stub(void *addr, gsize length, gint prot, gint flags, gint fd, gint64 offset) {<br>
+ return mmap(addr, (size_t)length, prot, flags, fd, (__off_t)offset);<br>
+}<br>
+<br>
GstV4l2Object *<br>
gst_v4l2_object_new (GstElement * element,<br>
enum v4l2_buf_type type,<br>
@@ -509,9 +513,9 @@ gst_v4l2_object_new (GstElement * element,<br>
v4l2object->dup = dup;<br>
v4l2object->ioctl = ioctl;<br>
v4l2object->read = read;<br>
- v4l2object->mmap = mmap;<br>
+ v4l2object->mmap = mmap_stub;<br>
v4l2object->munmap = munmap;<br>
}<br>
<br>
return v4l2object;<br>
}<br>
<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</blockquote></div><br></div></div></div>