Issue 1254695: QuickTime API needs corrected object types (original) (raw)

Issue1254695

Created on 2005-08-09 04:03 by ckdavis, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
qtdiff ckdavis,2005-08-09 04:03 qtsupport.py: patch to fix CmpObj/CmpInstObj mistyping
qt-changes.diff ckdavis,2007-10-29 00:16
Messages (3)
msg48649 - (view) Author: Christopher K Davis (ckdavis) Date: 2005-08-09 04:03
Many of the objects in the Carbon.Qt module are typed as Component (CmpObj) when the QuickTime API documents them as ComponentInstance (CmpInstObj). This makes it impossible to use GetGraphicsImporterForFile and then GraphicsImportGetAsPicture, because the latter is incorrectly expecting a CmpObj while the former is correctly returning a CmpInstObj. Attached is a patch to qtsupport.py correcting the incorrect CmpObj typing, checked by reference to the QuickTime API docs.
msg56896 - (view) Author: Christopher K Davis (ckdavis) Date: 2007-10-29 00:16
Attached diff applies to 2.5.1. This bug still exists.
msg84565 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2009-03-30 15:24
I've applied these patches in revision r70713, the bugfix will be in python 2.7. Also backported to 2.6 in r70715.
History
Date User Action Args
2022-04-11 14:56:12 admin set github: 42262
2009-03-30 15:24:41 ronaldoussoren set status: open -> closednosy: + ronaldoussorenmessages: + resolution: accepted
2009-02-15 19:42:26 ajaksu2 set stage: test neededtype: behaviorversions: + Python 2.6, - Python 2.5, Python 2.4
2007-10-29 00:16:15 ckdavis set files: + qt-changes.diffmessages: + versions: + Python 2.5
2005-08-09 04:03:55 ckdavis create