Commit 90dc652d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

ActiveX: fix compilation

And deactivate the set_teletext functions, since they have been removed from libvlc...
parent d09767fb
...@@ -1023,7 +1023,7 @@ bool VLCPlugin::playlist_select( int idx, libvlc_exception_t *ex ) ...@@ -1023,7 +1023,7 @@ bool VLCPlugin::playlist_select( int idx, libvlc_exception_t *ex )
libvlc_media_list_lock(_p_mlist); libvlc_media_list_lock(_p_mlist);
int count = libvlc_media_list_count(_p_mlist,ex); int count = libvlc_media_list_count(_p_mlist);
if( libvlc_exception_raised(ex) ) if( libvlc_exception_raised(ex) )
goto bad_unlock; goto bad_unlock;
...@@ -1059,7 +1059,7 @@ bad_unlock: ...@@ -1059,7 +1059,7 @@ bad_unlock:
void VLCPlugin::set_player_window(libvlc_exception_t *ex) void VLCPlugin::set_player_window(libvlc_exception_t *ex)
{ {
// XXX FIXME no idea if this is correct or not // XXX FIXME no idea if this is correct or not
libvlc_media_player_set_hwnd(_p_mplayer,getInPlaceWindow(),ex); libvlc_media_player_set_hwnd(_p_mplayer,getInPlaceWindow());
} }
int VLCPlugin::playlist_add_extended_untrusted(const char *mrl, int optc, const char **optv, libvlc_exception_t *ex) int VLCPlugin::playlist_add_extended_untrusted(const char *mrl, int optc, const char **optv, libvlc_exception_t *ex)
...@@ -1075,7 +1075,7 @@ int VLCPlugin::playlist_add_extended_untrusted(const char *mrl, int optc, const ...@@ -1075,7 +1075,7 @@ int VLCPlugin::playlist_add_extended_untrusted(const char *mrl, int optc, const
libvlc_media_list_lock(_p_mlist); libvlc_media_list_lock(_p_mlist);
libvlc_media_list_add_media(_p_mlist,p_m,ex); libvlc_media_list_add_media(_p_mlist,p_m,ex);
if( !libvlc_exception_raised(ex) ) if( !libvlc_exception_raised(ex) )
item = libvlc_media_list_count(_p_mlist,ex)-1; item = libvlc_media_list_count(_p_mlist)-1;
libvlc_media_list_unlock(_p_mlist); libvlc_media_list_unlock(_p_mlist);
libvlc_media_release(p_m); libvlc_media_release(p_m);
......
...@@ -245,7 +245,7 @@ public: ...@@ -245,7 +245,7 @@ public:
*/ */
bool isPlaying(libvlc_exception_t *ex) bool isPlaying(libvlc_exception_t *ex)
{ {
return _p_mplayer && libvlc_media_player_is_playing(_p_mplayer,ex); return _p_mplayer && libvlc_media_player_is_playing(_p_mplayer);
} }
int playlist_get_current_index(libvlc_exception_t *) { return _i_midx; } int playlist_get_current_index(libvlc_exception_t *) { return _i_midx; }
int playlist_add_extended_untrusted(const char *, int, const char **, libvlc_exception_t *); int playlist_add_extended_untrusted(const char *, int, const char **, libvlc_exception_t *);
...@@ -268,7 +268,7 @@ public: ...@@ -268,7 +268,7 @@ public:
if( !_p_mlist ) if( !_p_mlist )
return 0; return 0;
libvlc_media_list_lock(_p_mlist); libvlc_media_list_lock(_p_mlist);
r = libvlc_media_list_count(_p_mlist,ex); r = libvlc_media_list_count(_p_mlist);
libvlc_media_list_unlock(_p_mlist); libvlc_media_list_unlock(_p_mlist);
return r; return r;
} }
...@@ -294,7 +294,7 @@ public: ...@@ -294,7 +294,7 @@ public:
void playlist_stop(libvlc_exception_t *ex) void playlist_stop(libvlc_exception_t *ex)
{ {
if( _p_mplayer ) if( _p_mplayer )
libvlc_media_player_stop(_p_mplayer,ex); libvlc_media_player_stop(_p_mplayer);
} }
void playlist_next(libvlc_exception_t *ex) void playlist_next(libvlc_exception_t *ex)
{ {
......
...@@ -160,7 +160,7 @@ STDMETHODIMP VLCControl::stop(void) ...@@ -160,7 +160,7 @@ STDMETHODIMP VLCControl::stop(void)
libvlc_exception_t ex; libvlc_exception_t ex;
libvlc_exception_init(&ex); libvlc_exception_init(&ex);
libvlc_media_player_stop(p_md, &ex); libvlc_media_player_stop(p_md);
result = exception_bridge(&ex); result = exception_bridge(&ex);
if( SUCCEEDED(result) ) if( SUCCEEDED(result) )
_p_instance->fireOnStopEvent(); _p_instance->fireOnStopEvent();
...@@ -177,7 +177,7 @@ STDMETHODIMP VLCControl::get_Playing(VARIANT_BOOL *isPlaying) ...@@ -177,7 +177,7 @@ STDMETHODIMP VLCControl::get_Playing(VARIANT_BOOL *isPlaying)
HRESULT result = _p_instance->getMD(&p_md); HRESULT result = _p_instance->getMD(&p_md);
if( SUCCEEDED(result) ) if( SUCCEEDED(result) )
{ {
*isPlaying = libvlc_media_player_is_playing(p_md, NULL) ? *isPlaying = libvlc_media_player_is_playing(p_md) ?
VARIANT_TRUE : VARIANT_FALSE; VARIANT_TRUE : VARIANT_FALSE;
} else *isPlaying = VARIANT_FALSE; } else *isPlaying = VARIANT_FALSE;
return result; return result;
...@@ -266,7 +266,7 @@ STDMETHODIMP VLCControl::fullscreen(void) ...@@ -266,7 +266,7 @@ STDMETHODIMP VLCControl::fullscreen(void)
HRESULT result = _p_instance->getMD(&p_md); HRESULT result = _p_instance->getMD(&p_md);
if( SUCCEEDED(result) ) if( SUCCEEDED(result) )
{ {
if( libvlc_media_player_is_playing(p_md, NULL) ) if( libvlc_media_player_is_playing(p_md) )
{ {
libvlc_toggle_fullscreen(p_md, NULL); libvlc_toggle_fullscreen(p_md, NULL);
} }
......
...@@ -389,7 +389,7 @@ STDMETHODIMP VLCInput::get_state(long* state) ...@@ -389,7 +389,7 @@ STDMETHODIMP VLCInput::get_state(long* state)
libvlc_exception_t ex; libvlc_exception_t ex;
libvlc_exception_init(&ex); libvlc_exception_init(&ex);
*state = libvlc_media_player_get_state(p_md, &ex); *state = libvlc_media_player_get_state(p_md);
if( libvlc_exception_raised(&ex) ) if( libvlc_exception_raised(&ex) )
{ {
// don't fail, just return the idle state // don't fail, just return the idle state
...@@ -973,7 +973,7 @@ STDMETHODIMP VLCPlaylist::get_isPlaying(VARIANT_BOOL* isPlaying) ...@@ -973,7 +973,7 @@ STDMETHODIMP VLCPlaylist::get_isPlaying(VARIANT_BOOL* isPlaying)
libvlc_exception_t ex; libvlc_exception_t ex;
libvlc_exception_init(&ex); libvlc_exception_init(&ex);
*isPlaying = libvlc_media_player_is_playing(p_md, &ex) ? *isPlaying = libvlc_media_player_is_playing(p_md) ?
VARIANT_TRUE: VARIANT_FALSE; VARIANT_TRUE: VARIANT_FALSE;
libvlc_exception_clear(&ex); libvlc_exception_clear(&ex);
} }
...@@ -1100,7 +1100,7 @@ STDMETHODIMP VLCPlaylist::stop() ...@@ -1100,7 +1100,7 @@ STDMETHODIMP VLCPlaylist::stop()
libvlc_exception_t ex; libvlc_exception_t ex;
libvlc_exception_init(&ex); libvlc_exception_init(&ex);
libvlc_media_player_stop(p_md, &ex); libvlc_media_player_stop(p_md);
hr = exception_bridge(&ex);; hr = exception_bridge(&ex);;
} }
return hr; return hr;
...@@ -1486,29 +1486,34 @@ STDMETHODIMP VLCVideo::get_teletext(long* page) ...@@ -1486,29 +1486,34 @@ STDMETHODIMP VLCVideo::get_teletext(long* page)
libvlc_media_player_t *p_md; libvlc_media_player_t *p_md;
HRESULT hr = getMD(&p_md); HRESULT hr = getMD(&p_md);
#if 0
if( SUCCEEDED(hr) ) if( SUCCEEDED(hr) )
{ {
libvlc_exception_t ex; libvlc_exception_t ex;
libvlc_exception_init(&ex); libvlc_exception_init(&ex);
*page = libvlc_video_get_teletext(p_md, &ex); *page = libvlc_video_get_teletext(p_md);
hr = exception_bridge(&ex); hr = exception_bridge(&ex);
} }
#endif
return hr; return hr;
}; };
STDMETHODIMP VLCVideo::put_teletext(long page) STDMETHODIMP VLCVideo::put_teletext(long page)
{ {
#warning Broken
libvlc_media_player_t *p_md; libvlc_media_player_t *p_md;
HRESULT hr = getMD(&p_md); HRESULT hr = getMD(&p_md);
#if 0
if( SUCCEEDED(hr) ) if( SUCCEEDED(hr) )
{ {
libvlc_exception_t ex; libvlc_exception_t ex;
libvlc_exception_init(&ex); libvlc_exception_init(&ex);
libvlc_video_set_teletext(p_md, page, &ex); libvlc_video_set_teletext(p_md, page);
hr = exception_bridge(&ex); hr = exception_bridge(&ex);
} }
#endif
return hr; return hr;
}; };
......
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