[vlc-devel] [PATCH 2/2] activex: fix initial volume value

Daniel Amm da2424 at t-online.de
Tue Oct 11 19:31:00 CEST 2016


_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.
---
 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
-- 
2.10.1.windows.1



More information about the vlc-devel mailing list