npapi-vlc | branch: master | Daniel Amm <da2...@t-online.de> | Tue Oct 11 19:31:00 2016 +0200| [2e544b26bcea8671afe78af21aa9f3188a69b2b1] | committer: Jean-Baptiste Kempf
activex: fix initial volume value _i_volume is used to set a custom initial volume over the html embed attribute or the Visual Studio object property window. A new value will be only accepted if it's different to _i_volume. So if you want to set it to 50, it will currently not work, because activex initializes libvlc with 100 (default). This patch will set _i_volume to 100 to match the real volume. Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > https://code.videolan.org/videolan/npapi-vlc/commit/2e544b26bcea8671afe78af21aa9f3188a69b2b1 --- activex/plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activex/plugin.cpp b/activex/plugin.cpp index 6641473..d84cac9 100644 --- a/activex/plugin.cpp +++ b/activex/plugin.cpp @@ -386,7 +386,7 @@ HRESULT VLCPlugin::onInit(void) _bstr_mrl = NULL; _b_visible = TRUE; _b_mute = FALSE; - _i_volume = 50; + _i_volume = 100; _i_time = 0; _i_backcolor = 0; // set default/preferred size (320x240) pixels in HIMETRIC _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits