codegen/argtypes.py: act on the mini object properly, not on the py object

Original commit message from CVS:

* codegen/argtypes.py:
act on the mini object properly, not on the py object
This commit is contained in:
Thomas Vander Stichele 2005-10-05 14:51:43 +00:00
parent 02193a3552
commit 2d361383fc
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-10-05 Thomas Vander Stichele <thomas at apestaart dot org>
* codegen/argtypes.py:
act on the mini object properly, not on the py object
2005-10-05 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstbuffer.override:

View file

@ -535,7 +535,7 @@ class MiniObjectArg(ArgType):
info.add_parselist('O!', ['&Py%s_Type' % self.objname,
'&' + pname], [pname])
if keeprefcount:
info.codebefore.append(' gst_mini_object_ref(GST_MINI_OBJECT(%s));\n' % pname)
info.codebefore.append(' gst_mini_object_ref(GST_MINI_OBJECT(%s->obj));\n' % pname)
def write_return(self, ptype, ownsreturn, info):
if ptype[-1] == '*': ptype = ptype[:-1]
info.varlist.add(ptype, '*ret')