Changeset 8d3912c26d9eecbf3d74020d28a0c11a0ba5dc22
- Timestamp:
- 05/03/07 22:03:09
(1 year ago)
- Author:
- Olivier Aubert <olivier.aubert@liris.cnrs.fr>
- git-committer:
- Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1178222589 +0000
- git-parent:
[a79c62a4d1fe8d5c64e89f4d81016c186fd6bae2]
- git-author:
- Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1178222589 +0000
- Message:
python bindings: use new mediacontrol_exception_create function
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rc1432d5 |
r8d3912c |
|
| 47 | 47 | **********************************************************************/ |
|---|
| 48 | 48 | |
|---|
| 49 | | #define MC_TRY exception=mediacontrol_exception_init(exception) |
|---|
| | 49 | #define MC_TRY exception=mediacontrol_exception_create( ) |
|---|
| 50 | 50 | |
|---|
| 51 | 51 | #define MC_EXCEPT \ |
|---|
| 52 | | if( exception->code ) { \ |
|---|
| | 52 | if( exception && exception->code ) { \ |
|---|
| 53 | 53 | PyObject *py_exc = MediaControl_InternalException; \ |
|---|
| 54 | 54 | switch( exception->code ) { \ |
|---|
| … | … | |
| 72 | 72 | mediacontrol_exception_free( exception ); \ |
|---|
| 73 | 73 | return NULL; \ |
|---|
| 74 | | } else { mediacontrol_exception_free( exception ); } |
|---|
| | 74 | } else if( exception ) { mediacontrol_exception_free( exception ); } |
|---|
| 75 | 75 | |
|---|
| 76 | 76 | PyObject *MediaControl_InternalException; |
|---|