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' 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):