Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
432af467
Commit
432af467
authored
Feb 15, 2006
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacontrol-python: portability fix (for Mac OS X/PPC), dirty but it works
parent
615ba42c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
bindings/mediacontrol-python/vlcglue.c
bindings/mediacontrol-python/vlcglue.c
+1
-1
bindings/mediacontrol-python/vlcglue.h
bindings/mediacontrol-python/vlcglue.h
+9
-1
No files found.
bindings/mediacontrol-python/vlcglue.c
View file @
432af467
...
...
@@ -1358,7 +1358,7 @@ position_py_to_c( PyObject * py_position )
{
a_position
->
origin
=
pos
->
origin
;
a_position
->
key
=
pos
->
key
;
a_position
->
value
=
pos
->
value
;
a_position
->
value
=
ntohll
(
pos
->
value
)
;
}
else
{
...
...
bindings/mediacontrol-python/vlcglue.h
View file @
432af467
...
...
@@ -107,7 +107,7 @@ typedef struct
PyObject_HEAD
int
origin
;
int
key
;
long
long
value
;
PY_LONG_LONG
value
;
}
PyPosition
;
staticforward
PyTypeObject
PyPosition_Type
;
...
...
@@ -116,3 +116,11 @@ mediacontrol_PositionKey positionKey_py_to_c( PyObject * py_key );
mediacontrol_PositionOrigin
positionOrigin_py_to_c
(
PyObject
*
py_origin
);
mediacontrol_Position
*
position_py_to_c
(
PyObject
*
py_position
);
PyPosition
*
position_c_to_py
(
mediacontrol_Position
*
position
);
/* Long long conversion on Mac os X/ppc */
#if defined (__ppc__) || defined(__ppc64__)
#define ntohll(x) ((long long) x >> 64)
#else
#define ntohll(x) (x)
#endif
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