Commit 2f6a9d1a authored by Jean-Paul Saman's avatar Jean-Paul Saman

Use libvlc_media_instance_t instead of libvlc_input_t.

parent 4d4eb334
......@@ -2366,11 +2366,11 @@ STDMETHODIMP VLCVideo::get_teletext(long* page)
libvlc_exception_t ex;
libvlc_exception_init(&ex);
libvlc_input_t *p_input = libvlc_playlist_get_input(p_libvlc, &ex);
libvlc_media_instance_t *p_md = libvlc_playlist_get_media_instance(p_libvlc, &ex);
if( ! libvlc_exception_raised(&ex) )
{
*page = libvlc_video_get_teletext(p_input, &ex);
libvlc_input_free(p_input);
*page = libvlc_video_get_teletext(p_md, &ex);
libvlc_media_instance_release(p_md);
if( ! libvlc_exception_raised(&ex) )
{
return NOERROR;
......@@ -2392,9 +2392,9 @@ STDMETHODIMP VLCVideo::put_teletext(long page)
libvlc_exception_t ex;
libvlc_exception_init(&ex);
libvlc_input_t *p_input = libvlc_playlist_get_input(p_libvlc, &ex);
libvlc_video_set_teletext(p_input, page, &ex);
libvlc_input_free(p_input);
libvlc_media_instance_t *p_md = libvlc_playlist_get_media_instance(p_libvlc, &ex);
libvlc_video_set_teletext(p_md, page, &ex);
libvlc_media_instance_release(p_md);
if( libvlc_exception_raised(&ex) )
{
_p_instance->setErrorInfo(IID_IVLCVideo, libvlc_exception_get_message(&ex));
......
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