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
5e2f8763
Commit
5e2f8763
authored
Jul 19, 2006
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bindings/mediacontrol-python/vlcglue.c: bind get_/set_rate and get_/set_fullscreen
parent
671f0b24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
0 deletions
+80
-0
bindings/mediacontrol-python/vlcglue.c
bindings/mediacontrol-python/vlcglue.c
+80
-0
No files found.
bindings/mediacontrol-python/vlcglue.c
View file @
5e2f8763
...
...
@@ -1181,6 +1181,78 @@ MediaControl_sound_get_volume( PyObject *self, PyObject *args )
return
py_retval
;
}
static
PyObject
*
MediaControl_set_rate
(
PyObject
*
self
,
PyObject
*
args
)
{
mediacontrol_Exception
*
exception
=
NULL
;
int
rate
;
if
(
!
PyArg_ParseTuple
(
args
,
"i"
,
&
rate
)
)
return
NULL
;
Py_BEGIN_ALLOW_THREADS
MC_TRY
;
mediacontrol_set_rate
(
SELF
->
mc
,
rate
,
exception
);
Py_END_ALLOW_THREADS
MC_EXCEPT
;
Py_INCREF
(
Py_None
);
return
Py_None
;
}
static
PyObject
*
MediaControl_get_rate
(
PyObject
*
self
,
PyObject
*
args
)
{
mediacontrol_Exception
*
exception
=
NULL
;
PyObject
*
py_retval
;
int
rate
;
Py_BEGIN_ALLOW_THREADS
MC_TRY
;
rate
=
mediacontrol_get_rate
(
SELF
->
mc
,
exception
);
Py_END_ALLOW_THREADS
MC_EXCEPT
;
py_retval
=
Py_BuildValue
(
"i"
,
rate
);
return
py_retval
;
}
static
PyObject
*
MediaControl_set_fullscreen
(
PyObject
*
self
,
PyObject
*
args
)
{
mediacontrol_Exception
*
exception
=
NULL
;
int
fs
;
if
(
!
PyArg_ParseTuple
(
args
,
"i"
,
&
fs
)
)
return
NULL
;
Py_BEGIN_ALLOW_THREADS
MC_TRY
;
mediacontrol_set_fullscreen
(
SELF
->
mc
,
fs
,
exception
);
Py_END_ALLOW_THREADS
MC_EXCEPT
;
Py_INCREF
(
Py_None
);
return
Py_None
;
}
static
PyObject
*
MediaControl_get_fullscreen
(
PyObject
*
self
,
PyObject
*
args
)
{
mediacontrol_Exception
*
exception
=
NULL
;
PyObject
*
py_retval
;
int
fs
;
Py_BEGIN_ALLOW_THREADS
MC_TRY
;
fs
=
mediacontrol_get_fullscreen
(
SELF
->
mc
,
exception
);
Py_END_ALLOW_THREADS
MC_EXCEPT
;
py_retval
=
Py_BuildValue
(
"i"
,
fs
);
return
py_retval
;
}
static
PyObject
*
MediaControl_set_visual
(
PyObject
*
self
,
PyObject
*
args
)
{
...
...
@@ -1235,6 +1307,14 @@ static PyMethodDef MediaControl_methods[] =
"sound_set_volume( int ) Set the volume"
},
{
"set_visual"
,
MediaControl_set_visual
,
METH_VARARGS
,
"set_visual( int ) Set the embedding window visual ID"
},
{
"get_rate"
,
MediaControl_get_rate
,
METH_VARARGS
,
"get_rate( ) -> int Get the rate"
},
{
"set_rate"
,
MediaControl_set_rate
,
METH_VARARGS
,
"set_rate( int ) Set the rate"
},
{
"get_fullscreen"
,
MediaControl_get_fullscreen
,
METH_VARARGS
,
"get_fullscreen( ) -> int Get the fullscreen status"
},
{
"set_fullscreen"
,
MediaControl_set_fullscreen
,
METH_VARARGS
,
"set_fullscreen( int ) Set the fullscreen status"
},
{
NULL
,
NULL
,
0
,
NULL
},
};
...
...
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