Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
2af358da
Commit
2af358da
authored
Jun 19, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python: Fix misspelling of media_instance.
parent
15d00674
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
bindings/python/vlc_input.c
bindings/python/vlc_input.c
+23
-23
No files found.
bindings/python/vlc_input.c
View file @
2af358da
...
...
@@ -32,7 +32,7 @@ vlcInput_get_length( PyObject *self, PyObject *args )
libvlc_exception_t
ex
;
vlc_int64_t
i_ret
;
LIBVLC_TRY
;
i_ret
=
libvlc_media_instance
t_get_length
(
libvlc_media_instanceT
->
p_md
,
&
ex
);
i_ret
=
libvlc_media_instance
_get_length
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"L"
,
i_ret
);
}
...
...
@@ -43,7 +43,7 @@ vlcInput_get_time( PyObject *self, PyObject *args )
libvlc_exception_t
ex
;
vlc_int64_t
i_ret
;
LIBVLC_TRY
;
i_ret
=
libvlc_media_instance
t_get_time
(
libvlc_media_instanceT
->
p_md
,
&
ex
);
i_ret
=
libvlc_media_instance
_get_time
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"L"
,
i_ret
);
}
...
...
@@ -58,7 +58,7 @@ vlcInput_set_time( PyObject *self, PyObject *args )
return
NULL
;
LIBVLC_TRY
;
libvlc_media_instance
t_set_time
(
libvlc_media_instanceT
->
p_md
,
i_time
,
&
ex
);
libvlc_media_instance
_set_time
(
libvlc_media_instance
->
p_md
,
i_time
,
&
ex
);
LIBVLC_EXCEPT
;
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
@@ -70,7 +70,7 @@ vlcInput_get_position( PyObject *self, PyObject *args )
libvlc_exception_t
ex
;
float
f_ret
;
LIBVLC_TRY
;
f_ret
=
libvlc_media_instance
t_get_position
(
libvlc_media_instanceT
->
p_md
,
&
ex
);
f_ret
=
libvlc_media_instance
_get_position
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"f"
,
f_ret
);
}
...
...
@@ -85,7 +85,7 @@ vlcInput_set_position( PyObject *self, PyObject *args )
return
NULL
;
LIBVLC_TRY
;
libvlc_media_instance
t_set_position
(
libvlc_media_instanceT
->
p_md
,
f_pos
,
&
ex
);
libvlc_media_instance
_set_position
(
libvlc_media_instance
->
p_md
,
f_pos
,
&
ex
);
LIBVLC_EXCEPT
;
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
@@ -97,7 +97,7 @@ vlcInput_will_play( PyObject *self, PyObject *args )
libvlc_exception_t
ex
;
int
i_ret
;
LIBVLC_TRY
;
i_ret
=
libvlc_media_instance
t_will_play
(
libvlc_media_instanceT
->
p_md
,
&
ex
);
i_ret
=
libvlc_media_instance
_will_play
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"i"
,
i_ret
);
}
...
...
@@ -108,7 +108,7 @@ vlcInput_get_rate( PyObject *self, PyObject *args )
libvlc_exception_t
ex
;
float
f_ret
;
LIBVLC_TRY
;
f_ret
=
libvlc_media_instance
t_get_rate
(
libvlc_media_instanceT
->
p_md
,
&
ex
);
f_ret
=
libvlc_media_instance
_get_rate
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"f"
,
f_ret
);
}
...
...
@@ -123,7 +123,7 @@ vlcInput_set_rate( PyObject *self, PyObject *args )
return
NULL
;
LIBVLC_TRY
;
libvlc_media_instance
t_set_rate
(
libvlc_media_instanceT
->
p_md
,
f_rate
,
&
ex
);
libvlc_media_instance
_set_rate
(
libvlc_media_instance
->
p_md
,
f_rate
,
&
ex
);
LIBVLC_EXCEPT
;
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
@@ -135,7 +135,7 @@ vlcInput_get_state( PyObject *self, PyObject *args )
libvlc_exception_t
ex
;
int
i_ret
;
LIBVLC_TRY
;
i_ret
=
libvlc_media_instance
t_get_state
(
libvlc_media_instanceT
->
p_md
,
&
ex
);
i_ret
=
libvlc_media_instance
_get_state
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"i"
,
i_ret
);
}
...
...
@@ -146,7 +146,7 @@ vlcInput_has_vout( PyObject *self, PyObject *args )
libvlc_exception_t
ex
;
int
i_ret
;
LIBVLC_TRY
;
i_ret
=
libvlc_media_instance
t_has_vout
(
libvlc_media_instanceT
->
p_md
,
&
ex
);
i_ret
=
libvlc_media_instance
_has_vout
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"i"
,
i_ret
);
}
...
...
@@ -157,7 +157,7 @@ vlcInput_get_fps( PyObject *self, PyObject *args )
libvlc_exception_t
ex
;
float
f_ret
;
LIBVLC_TRY
;
f_ret
=
libvlc_media_instance
t_get_fps
(
libvlc_media_instanceT
->
p_md
,
&
ex
);
f_ret
=
libvlc_media_instance
_get_fps
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"f"
,
f_ret
);
}
...
...
@@ -169,7 +169,7 @@ vlcInput_audio_get_track( PyObject *self, PyObject *args )
int
i_ret
;
LIBVLC_TRY
;
i_ret
=
libvlc_audio_get_track
(
libvlc_media_instance
T
->
p_md
,
&
ex
);
i_ret
=
libvlc_audio_get_track
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"i"
,
i_ret
);
}
...
...
@@ -184,7 +184,7 @@ vlcInput_audio_set_track( PyObject *self, PyObject *args )
return
NULL
;
LIBVLC_TRY
;
libvlc_audio_set_track
(
libvlc_media_instance
T
->
p_md
,
i_track
,
&
ex
);
libvlc_audio_set_track
(
libvlc_media_instance
->
p_md
,
i_track
,
&
ex
);
LIBVLC_EXCEPT
;
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
@@ -196,7 +196,7 @@ vlcInput_toggle_fullscreen( PyObject *self, PyObject *args )
libvlc_exception_t
ex
;
LIBVLC_TRY
;
libvlc_toggle_fullscreen
(
libvlc_media_instance
T
->
p_md
,
&
ex
);
libvlc_toggle_fullscreen
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
@@ -212,7 +212,7 @@ vlcInput_set_fullscreen( PyObject *self, PyObject *args )
return
NULL
;
LIBVLC_TRY
;
libvlc_set_fullscreen
(
libvlc_media_instance
T
->
p_md
,
i_fullscreen
,
&
ex
);
libvlc_set_fullscreen
(
libvlc_media_instance
->
p_md
,
i_fullscreen
,
&
ex
);
LIBVLC_EXCEPT
;
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
@@ -225,7 +225,7 @@ vlcInput_get_fullscreen( PyObject *self, PyObject *args )
int
i_ret
;
LIBVLC_TRY
;
i_ret
=
libvlc_get_fullscreen
(
libvlc_media_instance
T
->
p_md
,
&
ex
);
i_ret
=
libvlc_get_fullscreen
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"i"
,
i_ret
);
}
...
...
@@ -237,7 +237,7 @@ vlcInput_get_height( PyObject *self, PyObject *args )
int
i_ret
;
LIBVLC_TRY
;
i_ret
=
libvlc_video_get_height
(
libvlc_media_instance
T
->
p_md
,
&
ex
);
i_ret
=
libvlc_video_get_height
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"i"
,
i_ret
);
}
...
...
@@ -249,7 +249,7 @@ vlcInput_get_width( PyObject *self, PyObject *args )
int
i_ret
;
LIBVLC_TRY
;
i_ret
=
libvlc_video_get_width
(
libvlc_media_instance
T
->
p_md
,
&
ex
);
i_ret
=
libvlc_video_get_width
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"i"
,
i_ret
);
}
...
...
@@ -262,7 +262,7 @@ vlcInput_get_aspect_ratio( PyObject *self, PyObject *args )
PyObject
*
o_ret
;
LIBVLC_TRY
;
psz_ret
=
libvlc_video_get_aspect_ratio
(
libvlc_media_instance
T
->
p_md
,
&
ex
);
psz_ret
=
libvlc_video_get_aspect_ratio
(
libvlc_media_instance
->
p_md
,
&
ex
);
LIBVLC_EXCEPT
;
o_ret
=
Py_BuildValue
(
"s"
,
psz_ret
);
free
(
psz_ret
);
...
...
@@ -279,7 +279,7 @@ vlcInput_set_aspect_ratio( PyObject *self, PyObject *args )
return
NULL
;
LIBVLC_TRY
;
libvlc_video_set_aspect_ratio
(
libvlc_media_instance
T
->
p_md
,
psz_ratio
,
&
ex
);
libvlc_video_set_aspect_ratio
(
libvlc_media_instance
->
p_md
,
psz_ratio
,
&
ex
);
LIBVLC_EXCEPT
;
free
(
psz_ratio
);
Py_INCREF
(
Py_None
);
...
...
@@ -296,7 +296,7 @@ vlcInput_video_take_snapshot( PyObject *self, PyObject *args )
return
NULL
;
LIBVLC_TRY
;
libvlc_video_take_snapshot
(
libvlc_media_instance
T
->
p_md
,
psz_filename
,
&
ex
);
libvlc_video_take_snapshot
(
libvlc_media_instance
->
p_md
,
psz_filename
,
&
ex
);
LIBVLC_EXCEPT
;
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
@@ -313,7 +313,7 @@ vlcInput_video_resize( PyObject *self, PyObject *args )
return
NULL
;
LIBVLC_TRY
;
libvlc_video_resize
(
libvlc_media_instance
T
->
p_md
,
i_width
,
i_height
,
&
ex
);
libvlc_video_resize
(
libvlc_media_instance
->
p_md
,
i_width
,
i_height
,
&
ex
);
LIBVLC_EXCEPT
;
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
@@ -330,7 +330,7 @@ vlcInput_video_reparent( PyObject *self, PyObject *args )
return
NULL
;
LIBVLC_TRY
;
i_ret
=
libvlc_video_reparent
(
libvlc_media_instance
T
->
p_md
,
i_visual
,
&
ex
);
i_ret
=
libvlc_video_reparent
(
libvlc_media_instance
->
p_md
,
i_visual
,
&
ex
);
LIBVLC_EXCEPT
;
return
Py_BuildValue
(
"i"
,
i_ret
);
}
...
...
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