Commit 34aa7468 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

Python: More input->media_instance changes.

parent 72f9267e
...@@ -318,15 +318,15 @@ static PyObject * ...@@ -318,15 +318,15 @@ static PyObject *
vlcInstance_playlist_get_input( PyObject *self, PyObject *args ) vlcInstance_playlist_get_input( PyObject *self, PyObject *args )
{ {
libvlc_exception_t ex; libvlc_exception_t ex;
libvlc_input_t *p_input; libvlc_media_instance_t *p_md;
vlcInput *p_ret; vlcInput *p_ret;
LIBVLC_TRY; LIBVLC_TRY;
p_input = libvlc_playlist_get_input( LIBVLC_INSTANCE->p_instance, &ex ); p_md = libvlc_playlist_get_media_instance( LIBVLC_INSTANCE->p_instance, &ex );
LIBVLC_EXCEPT; LIBVLC_EXCEPT;
p_ret = PyObject_New( vlcInput, &vlcInput_Type ); p_ret = PyObject_New( vlcInput, &vlcInput_Type );
p_ret->p_input = p_input; p_ret->p_md = p_md;
Py_INCREF( p_ret ); /* Ah bon ? */ Py_INCREF( p_ret ); /* Ah bon ? */
return ( PyObject * )p_ret; return ( PyObject * )p_ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment