Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
25481d94
Commit
25481d94
authored
Dec 18, 2004
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2: Loading a new theme while an embedded vout is used works better
(the new vout is refreshed)
parent
49fe08ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
modules/gui/skins2/src/theme_loader.cpp
modules/gui/skins2/src/theme_loader.cpp
+4
-0
modules/gui/skins2/src/vlcproc.hpp
modules/gui/skins2/src/vlcproc.hpp
+4
-0
No files found.
modules/gui/skins2/src/theme_loader.cpp
View file @
25481d94
...
...
@@ -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
;
}
...
...
modules/gui/skins2/src/vlcproc.hpp
View file @
25481d94
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment