arg-types: Properly handle const-GstCaps* return values
This commit is contained in:
parent
e9409c6d43
commit
28fca28378
@ -138,7 +138,7 @@ class GstCapsArg(ArgType):
|
|||||||
copyval = 'TRUE'
|
copyval = 'TRUE'
|
||||||
else:
|
else:
|
||||||
raise RuntimeError, "write_return not implemented for %s" % ptype
|
raise RuntimeError, "write_return not implemented for %s" % ptype
|
||||||
info.codeafter.append(' return pyg_boxed_new (GST_TYPE_CAPS, ret, '+copyval+', TRUE);')
|
info.codeafter.append(' return pyg_boxed_new (GST_TYPE_CAPS, (GstCaps*) ret, '+copyval+', TRUE);')
|
||||||
|
|
||||||
class GstIteratorArg(ArgType):
|
class GstIteratorArg(ArgType):
|
||||||
def write_return(self, ptype, ownsreturn, info):
|
def write_return(self, ptype, ownsreturn, info):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user