Commit 25481d94 authored by Olivier Teulière's avatar Olivier Teulière

* skins2: Loading a new theme while an embedded vout is used works better

   (the new vout is refreshed)
parent 49fe08ff
......@@ -27,6 +27,7 @@
#include "../parser/builder.hpp"
#include "../parser/skin_parser.hpp"
#include "../src/os_factory.hpp"
#include "../src/vlcproc.hpp"
#include "../src/window_manager.hpp"
#ifdef HAVE_FCNTL_H
......@@ -99,6 +100,9 @@ bool ThemeLoader::load( const string &fileName )
}
if( skin_last ) free( skin_last );
// The new theme cannot embed a video output yet
getIntf()->p_sys->p_vlcProc->setVoutUnused();
return true;
}
......
......@@ -68,6 +68,10 @@ class VlcProc: public SkinObject
/// Indicate whether the embedded video output is currently used
bool isVoutUsed() const { return m_pVout; }
/// Forget that an embedded video output is used (typically used when
/// changing skins, since the video output cannot change parent)
void setVoutUnused() { m_pVout = NULL; }
protected:
// Protected because it is a singleton
VlcProc( intf_thread_t *pIntf );
......
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