gst-python: arg-types: Properly handle const-GstCaps* return values
Tim Müller
tpm at kemper.freedesktop.org
Wed Apr 11 02:30:07 PDT 2012
Module: gst-python
Branch: master
Commit: 28fca28378ca00e9f4568cc7e969a414112f5f73
URL: http://cgit.freedesktop.org/gstreamer/gst-python/commit/?id=28fca28378ca00e9f4568cc7e969a414112f5f73
Author: Edward Hervey <edward.hervey at collabora.co.uk>
Date: Wed Jan 5 15:04:25 2011 +0100
arg-types: Properly handle const-GstCaps* return values
---
gst/arg-types.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gst/arg-types.py b/gst/arg-types.py
index de8f2c6..bf45607 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):
More information about the gstreamer-commits
mailing list