[Bug 702921] New: [pygi] python applications cannot interpret buffer metadata

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Jun 23 17:17:25 PDT 2013


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

           Summary: [pygi] python applications cannot interpret buffer
                    metadata
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Mac OS
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: zaheermerali at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Use case:

udpsrc ! fakesink

Buffer probe on src pad of udpsrc, callback fires on packet. Try to find out
what the remote IP and port is. This has been added as metadata on a per buffer
basis. Came up with the following:

def on_udp_packet_arrived(pad, info, _user_data):
    net_address_type = GObject.type_from_name("GstNetAddressMetaAPI")
    buf = Gst.PadProbeInfo.get_buffer(info)
    info = buf.get_meta(net_address_type)
    print(dir(info))

This outputs:
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__',
'__format__', '__ge__', '__getattribute__', '__gt__', '__gtype__', '__hash__',
'__info__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__',
'__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__',
'__str__', '__subclasshook__', '__weakref__', 'api_type_has_tag',
'api_type_register', 'flags', 'get_info', 'info', 'register']

Looking at the info property shows not much useful.

-- 
Configure bugmail: http://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