Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
54d75f77
Commit
54d75f77
authored
Mar 25, 2006
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* added a new skin variable "vlc.hasVout", true when... there is a vout !
parent
41c0868c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
doc/skins/skins2-howto.xml
doc/skins/skins2-howto.xml
+3
-0
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+4
-0
modules/gui/skins2/src/vlcproc.hpp
modules/gui/skins2/src/vlcproc.hpp
+1
-0
No files found.
doc/skins/skins2-howto.xml
View file @
54d75f77
...
...
@@ -939,6 +939,9 @@ difficulty to understand how VLC skins work.</para>
<listitem><para>
<emphasis>
equalizer.isEnabled
</emphasis>
: True if the equalizer audio filter is enabled (since VLC 0.8.5).
</para></listitem>
<listitem><para>
<emphasis>
vlc.hasVout
</emphasis>
: True if a video is being played (since VLC 0.8.5).
</para></listitem>
<listitem><para>
<emphasis>
vlc.isFullscreen
</emphasis>
: True when the video is in fullscreen mode (since VLC 0.8.5).
</para></listitem>
...
...
modules/gui/skins2/src/vlcproc.cpp
View file @
54d75f77
...
...
@@ -102,6 +102,7 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ),
REGISTER_VAR
(
m_cVarEqPreamp
,
EqualizerPreamp
,
"equalizer.preamp"
)
REGISTER_VAR
(
m_cVarDvdActive
,
VarBoolImpl
,
"dvd.isActive"
)
REGISTER_VAR
(
m_cVarFullscreen
,
VarBoolImpl
,
"vlc.isFullscreen"
)
REGISTER_VAR
(
m_cVarHasVout
,
VarBoolImpl
,
"vlc.hasVout"
)
#undef REGISTER_VAR
m_cVarStreamName
=
VariablePtr
(
new
VarText
(
getIntf
(),
false
)
);
pVarManager
->
registerVar
(
m_cVarStreamName
,
"streamName"
);
...
...
@@ -237,6 +238,7 @@ void VlcProc::manage()
VarBoolImpl
*
pVarRepeat
=
(
VarBoolImpl
*
)
m_cVarRepeat
.
get
();
VarBoolImpl
*
pVarDvdActive
=
(
VarBoolImpl
*
)
m_cVarDvdActive
.
get
();
VarBoolImpl
*
pVarFullscreen
=
(
VarBoolImpl
*
)
m_cVarFullscreen
.
get
();
VarBoolImpl
*
pVarHasVout
=
(
VarBoolImpl
*
)
m_cVarHasVout
.
get
();
// Refresh audio variables
refreshAudio
();
...
...
@@ -282,6 +284,7 @@ void VlcProc::manage()
// Refresh fullscreen status
vout_thread_t
*
pVout
=
(
vout_thread_t
*
)
vlc_object_find
(
pInput
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
pVarHasVout
->
set
(
pVout
!=
NULL
);
if
(
pVout
)
{
pVarFullscreen
->
set
(
pVout
->
b_fullscreen
);
...
...
@@ -297,6 +300,7 @@ void VlcProc::manage()
pVarDvdActive
->
set
(
false
);
pTime
->
set
(
0
,
false
);
pVarFullscreen
->
set
(
false
);
pVarHasVout
->
set
(
false
);
}
// Refresh the random variable
...
...
modules/gui/skins2/src/vlcproc.hpp
View file @
54d75f77
...
...
@@ -120,6 +120,7 @@ class VlcProc: public SkinObject
/// Variables related to the vout
VariablePtr
m_cVarFullscreen
;
VarBox
m_varVoutSize
;
VariablePtr
m_cVarHasVout
;
/// Equalizer variables
EqualizerBands
m_varEqBands
;
VariablePtr
m_cVarEqPreamp
;
...
...
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