Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Bump libvlcpp version
· c51e378f
Hugo Beauzée-Luyssen
authored
May 09, 2018
c51e378f
Update deinterlace functions to recent API changes
· d64081f6
Hugo Beauzée-Luyssen
authored
May 09, 2018
d64081f6
Hide whitespace changes
Inline
Side-by-side
activex/vlccontrol2.cpp
View file @
d64081f6
...
...
@@ -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
;
}
...
...
npapi/npruntime/npolibvlc.cpp
View file @
d64081f6
...
...
@@ -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
:
...
...
vlcpp
@
28e2c7a6
Compare
3088cfe5
...
28e2c7a6
Subproject commit
3088cfe51bbfda2c2ada51107aabf930938f9910
Subproject commit
28e2c7a668e740471c80eb3e7d66162aeffee4cf