[Bug 671126] v4l2src: avoid using same lenght variable for mmap and video buffer

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Mar 3 05:08:49 PST 2012


https://bugzilla.gnome.org/show_bug.cgi?id=671126
  GStreamer | gst-plugins-good | git

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |t.i.m at zen.co.uk
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |0.10.32

--- Comment #1 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2012-03-03 13:08:46 UTC ---
Pushed, thanks!

 commit 4cd9255f0a8a9e15d81561f00f02d275b5095f70
 Author: Oleksij Rempel (Alexey Fisher) <bug-track at fisher-privat.net>
 Date:   Thu Mar 1 14:15:29 2012 +0100

    v4l2src: fix v4l2_munmap() for compressed formats

    Make sure we always call munmap() with the same size we called mmap()
    with before.

    Current v4l2src uses the same structure for VIDIOC_QUERYBUF, VIDIOC_QBUF
    and v4l2_munmap calls. The problem is that the video buffer size (length)
    may vary for compressed or emulated bufs. VIDIOC_QBUF will change it if
    we pass the pointer of a v4l2_buffer. This is why we should avoid using
    same variable for mmap and video buffers.

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

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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