arg-types: Properly handle const-GstCaps* return values

This commit is contained in:
Edward Hervey 2011-01-05 15:04:25 +01:00
parent e9409c6d43
commit 28fca28378

View file

@ -138,7 +138,7 @@ class GstCapsArg(ArgType):
copyval = 'TRUE'
else:
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):
def write_return(self, ptype, ownsreturn, info):