Skip to content
Commits on Source (2)
......@@ -12,6 +12,9 @@ ActiveX:
* Allow empty strings for aspectRatio and crop
* Fix initial volume value for volume attribute
NPAPI:
* Fix possible crash in vlc.playlist.add()
Changes between VLC plugins 2.2.2 and 2.2.4:
--------------------------------------------
......
dnl Autoconf settings for npapi-vlc
AC_COPYRIGHT([Copyright 2002-2015 VLC authors and VideoLAN])
AC_COPYRIGHT([Copyright 2002-2017 VLC authors and VideoLAN])
AC_INIT(npapi-vlc, 2.2.4)
AC_INIT(npapi-vlc, 2.2.5)
VERSION_MAJOR="2"
AC_SUBST(VERSION_MAJOR)
VERSION_MINOR="2"
AC_SUBST(VERSION_MINOR)
VERSION_REVISION="4"
VERSION_REVISION="5"
AC_SUBST(VERSION_REVISION)
VERSION_EXTRA=""
AC_SUBST(VERSION_EXTRA)
......@@ -18,7 +18,7 @@ case $( echo ${VERSION_EXTRA}|wc -m ) in
*) if test "${VERSION_EXTRA}" = "-git"; then VERSION_EXTRA_RC="666"; else VERSION_EXTRA_RC="99"; fi
esac
AC_SUBST(VERSION_EXTRA_RC)
COPYRIGHT_YEARS="2002-2015"
COPYRIGHT_YEARS="2002-2017"
AC_SUBST(COPYRIGHT_YEARS)
COPYRIGHT_MESSAGE="Copyright © ${COPYRIGHT_YEARS} VLC authors and VideoLAN"
AC_SUBST(COPYRIGHT_MESSAGE)
......
......@@ -1133,6 +1133,10 @@ void LibvlcPlaylistNPObject::parseOptions(NPObject *obj, int *i_options,
NPIdentifier propId = NPN_GetStringIdentifier("length");
if( NPN_GetProperty(_instance, obj, propId, value) )
{
/* Check if result is valid (because we don't use NPN_HasProperty, the result can be void) */
if( !value.is<int>() )
return;
int count = value;
if( count )
......