Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
8d3912c2
Commit
8d3912c2
authored
May 03, 2007
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python bindings: use new mediacontrol_exception_create function
parent
a79c62a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bindings/python/vlcglue.h
bindings/python/vlcglue.h
+3
-3
No files found.
bindings/python/vlcglue.h
View file @
8d3912c2
...
@@ -46,10 +46,10 @@ typedef int Py_ssize_t;
...
@@ -46,10 +46,10 @@ typedef int Py_ssize_t;
* Exceptions handling
* Exceptions handling
**********************************************************************/
**********************************************************************/
#define MC_TRY exception=mediacontrol_exception_
init(exception
)
#define MC_TRY exception=mediacontrol_exception_
create(
)
#define MC_EXCEPT \
#define MC_EXCEPT \
if( exception->code ) { \
if( exception
&& exception
->code ) { \
PyObject *py_exc = MediaControl_InternalException; \
PyObject *py_exc = MediaControl_InternalException; \
switch( exception->code ) { \
switch( exception->code ) { \
case mediacontrol_InternalException: \
case mediacontrol_InternalException: \
...
@@ -71,7 +71,7 @@ typedef int Py_ssize_t;
...
@@ -71,7 +71,7 @@ typedef int Py_ssize_t;
PyErr_SetString( py_exc, exception->message ); \
PyErr_SetString( py_exc, exception->message ); \
mediacontrol_exception_free( exception ); \
mediacontrol_exception_free( exception ); \
return NULL; \
return NULL; \
} else { mediacontrol_exception_free( exception ); }
} else
if( exception )
{ mediacontrol_exception_free( exception ); }
PyObject
*
MediaControl_InternalException
;
PyObject
*
MediaControl_InternalException
;
PyObject
*
MediaControl_PositionKeyNotSupported
;
PyObject
*
MediaControl_PositionKeyNotSupported
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment