Skip to content
Commits on Source (2)
......@@ -562,7 +562,12 @@ STDMETHODIMP VLCAudio::toggleMute()
STDMETHODIMP VLCDeinterlace::disable()
{
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(4, 0, 0, 0)
_plug->get_player().get_mp().setDeinterlace( VLC::MediaPlayer::DeinterlaceState::Disabled,
std::string() );
#else
_plug->get_player().get_mp().setDeinterlace( "" );
#endif
return S_OK;
}
......@@ -571,7 +576,12 @@ STDMETHODIMP VLCDeinterlace::enable(BSTR mode)
char *psz_mode = CStrFromBSTR(CP_UTF8, mode);
if ( psz_mode == nullptr )
return E_OUTOFMEMORY;
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(4, 0, 0, 0)
_plug->get_player().get_mp().setDeinterlace( VLC::MediaPlayer::DeinterlaceState::Enabled,
psz_mode );
#else
_plug->get_player().get_mp().setDeinterlace( psz_mode );
#endif
CoTaskMemFree(psz_mode);
return S_OK;
}
......
......@@ -1981,7 +1981,12 @@ LibvlcDeinterlaceNPObject::invoke(int index, const NPVariant *args,
switch( index )
{
case ID_deint_disable:
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(4, 0, 0, 0)
mp.setDeinterlace( VLC::MediaPlayer::DeinterlaceState::Disabled,
std::string() );
#else
mp.setDeinterlace( std::string() );
#endif
break;
case ID_deint_enable:
......@@ -1992,7 +1997,11 @@ LibvlcDeinterlaceNPObject::invoke(int index, const NPVariant *args,
if ( !v.is<const char*>() )
return INVOKERESULT_INVALID_VALUE;
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(4, 0, 0, 0)
mp.setDeinterlace( VLC::MediaPlayer::DeinterlaceState::Enabled, v );
#else
mp.setDeinterlace( v );
#endif
break;
}
default:
......
Subproject commit 3088cfe51bbfda2c2ada51107aabf930938f9910
Subproject commit 28e2c7a668e740471c80eb3e7d66162aeffee4cf