[Bug 678663] New: Need equivalent of PyGST Buffer.data from PyGI, gst_map_info_get_data()?

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Jun 23 04:59:22 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=678663
  GStreamer | gstreamer (core) | git

           Summary: Need equivalent of PyGST Buffer.data from PyGI,
                    gst_map_info_get_data()?
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: jderose at novacut.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


(05:52:36 AM) __tim: we can always just add a gst_map_info_get_data() if
there's no other way
(05:52:41 AM) __tim: please file a bug about it

In PyGST, you could get the buffer data like this:

def on_preroll_handoff(element, buf, pad):
    data = buf.data

But there doesn't seem to be a way to do this with GStreamer 1.0 and PyGI. More
awesome would be had if you could. BTW, you can get the MapInfo from the Buffer
like this:

def on_preroll_handoff(element, buf, pad):
    map_info = buf.map_range(0, -1, Gst.MapFlags.READ)[1]

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