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
4c1fe7d3
Commit
4c1fe7d3
authored
Jan 18, 2008
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python bindings/vlc_internal: fix access to vlc_object_internals_t members
parent
05dec0ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
bindings/python/vlc_internal.c
bindings/python/vlc_internal.c
+12
-8
No files found.
bindings/python/vlc_internal.c
View file @
4c1fe7d3
...
...
@@ -22,6 +22,7 @@
*****************************************************************************/
#include "vlc_internal.h"
#include "../../src/libvlc.h"
/**************************************************************************
* VLC Module
...
...
@@ -259,7 +260,6 @@ vlcObject_find_name( PyObject *self, PyObject *args )
vlcObject
*
p_retval
;
vlc_object_t
*
p_obj
;
char
*
psz_name
;
int
i_object_type
;
if
(
!
PyArg_ParseTuple
(
args
,
"s"
,
&
psz_name
)
)
return
NULL
;
...
...
@@ -284,8 +284,10 @@ vlcObject_info( PyObject *self, PyObject *args )
{
PyObject
*
p_retval
;
vlc_object_t
*
p_obj
;
vlc_object_internals_t
*
p_priv
;
p_obj
=
VLCSELF
->
p_object
;
p_priv
=
vlc_internals
(
p_obj
);
/* Return information about the object as a dict. */
p_retval
=
PyDict_New
();
...
...
@@ -297,12 +299,11 @@ vlcObject_info( PyObject *self, PyObject *args )
PyDict_SetItemString
(
p_retval
,
"object-name"
,
Py_BuildValue
(
"s"
,
p_obj
->
psz_object_name
)
);
PyDict_SetItemString
(
p_retval
,
"thread"
,
PyBool_FromLong
(
p_
obj
->
b_thread
)
);
PyBool_FromLong
(
p_
priv
->
b_thread
)
);
PyDict_SetItemString
(
p_retval
,
"thread-id"
,
PyLong_FromLongLong
(
p_
obj
->
thread_id
)
);
PyLong_FromLongLong
(
p_
priv
->
thread_id
)
);
PyDict_SetItemString
(
p_retval
,
"refcount"
,
PyInt_FromLong
(
p_obj
->
i_refcount
)
);
PyInt_FromLong
(
p_priv
->
i_refcount
)
);
return
p_retval
;
}
...
...
@@ -527,14 +528,17 @@ vlcObject_var_list( PyObject *self, PyObject *args )
PyObject
*
p_retval
;
Py_ssize_t
i_size
;
Py_ssize_t
i_index
;
vlc_object_internals_t
*
p_priv
;
i_size
=
VLCSELF
->
p_object
->
i_vars
;
p_priv
=
vlc_internals
(
VLCSELF
->
p_object
);
i_size
=
p_priv
->
i_vars
;
p_retval
=
PyTuple_New
(
i_size
);
for
(
i_index
=
0
;
i_index
<
i_size
;
i_index
++
)
{
PyTuple_SetItem
(
p_retval
,
i_index
,
Py_BuildValue
(
"s"
,
VLCSELF
->
p_object
->
p_vars
[
i_index
].
psz_name
)
);
Py_BuildValue
(
"s"
,
p_priv
->
p_vars
[
i_index
].
psz_name
)
);
}
return
p_retval
;
...
...
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