Commit 624215ef authored by Sergey Radionov's avatar Sergey Radionov

ActiveX: added playback mode processing

parent 18896c02
......@@ -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 )
{
......
......@@ -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;};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment