[Bug 746329] Queries should always be writable when passed in the Gst.Pad.do_query 'vmethod'

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Mar 18 05:34:00 PDT 2015


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

--- Comment #2 from Andrew <ariscop at gmail.com> ---
Workaround, works by setting the refcount manually (courtesy of thiblahute on
freenode) 

def _sink_query(self, pad, parent, query):
    query.mini_object.refcount = 1
    if query.type == Gst.QueryType.CAPS:
        res = pad.proxy_query_caps(query)
    else:
        res = pad.query_default(parent, query)
    query.mini_object.refcount = 2
    return res

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