From 28fca28378ca00e9f4568cc7e969a414112f5f73 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 5 Jan 2011 15:04:25 +0100 Subject: [PATCH] arg-types: Properly handle const-GstCaps* return values --- gst/arg-types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/arg-types.py b/gst/arg-types.py index de8f2c66b5..bf45607eac 100644 --- a/gst/arg-types.py +++ b/gst/arg-types.py @@ -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):