[vlc-commits] ActiveX: added playback mode processing
Sergey Radionov
git at videolan.org
Tue Aug 14 14:30:21 CEST 2012
npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sun Mar 18 21:13:54 2012 +0700| [624215ef15f2b69d55399dcf19b522a71815ea16] | committer: Sergey Radionov
ActiveX: added playback mode processing
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=624215ef15f2b69d55399dcf19b522a71815ea16
---
activex/plugin.cpp | 8 +++-----
activex/plugin.h | 4 ++++
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/activex/plugin.cpp b/activex/plugin.cpp
index 8a0e1cc..ca3932d 100644
--- a/activex/plugin.cpp
+++ b/activex/plugin.cpp
@@ -521,11 +521,6 @@ void VLCPlugin::initVLC()
ppsz_argv[ppsz_argc++] = "--intf=dummy";
ppsz_argv[ppsz_argc++] = "--no-video-title-show";
-
- // loop mode is a configuration option only
- if( _b_autoloop )
- ppsz_argv[ppsz_argc++] = "--loop";
-
_p_libvlc = libvlc_new(ppsz_argc, ppsz_argv);
if( !_p_libvlc )
return;
@@ -533,6 +528,9 @@ void VLCPlugin::initVLC()
if( !vlc_player::open(_p_libvlc) )
return;
+ vlc_player::set_mode(_b_autoloop ? libvlc_playback_mode_loop :
+ libvlc_playback_mode_default);
+
// initial playlist item
if( SysStringLen(_bstr_mrl) > 0 )
{
diff --git a/activex/plugin.h b/activex/plugin.h
index e1ed102..06fb5c0 100644
--- a/activex/plugin.h
+++ b/activex/plugin.h
@@ -124,6 +124,10 @@ public:
inline void setAutoLoop(BOOL autoloop)
{
_b_autoloop = autoloop;
+ if( vlc_player::is_open() ){
+ vlc_player::set_mode(autoloop ? libvlc_playback_mode_loop :
+ libvlc_playback_mode_default);
+ }
setDirty(TRUE);
};
inline BOOL getAutoLoop(void) { return _b_autoloop;};
More information about the vlc-commits
mailing list