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
91e6499b
Commit
91e6499b
authored
Jul 27, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: factorize.
parent
208aeca0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
modules/gui/skins2/commands/cmd_playlist.cpp
modules/gui/skins2/commands/cmd_playlist.cpp
+4
-18
No files found.
modules/gui/skins2/commands/cmd_playlist.cpp
View file @
91e6499b
...
@@ -56,11 +56,7 @@ void CmdPlaylistRandom::execute()
...
@@ -56,11 +56,7 @@ void CmdPlaylistRandom::execute()
{
{
playlist_t
*
pPlaylist
=
getIntf
()
->
p_sys
->
p_playlist
;
playlist_t
*
pPlaylist
=
getIntf
()
->
p_sys
->
p_playlist
;
if
(
pPlaylist
!=
NULL
)
if
(
pPlaylist
!=
NULL
)
{
var_SetBool
(
pPlaylist
,
"random"
,
m_value
);
vlc_value_t
val
;
val
.
b_bool
=
m_value
;
var_Set
(
pPlaylist
,
"random"
,
val
);
}
}
}
...
@@ -68,11 +64,7 @@ void CmdPlaylistLoop::execute()
...
@@ -68,11 +64,7 @@ void CmdPlaylistLoop::execute()
{
{
playlist_t
*
pPlaylist
=
getIntf
()
->
p_sys
->
p_playlist
;
playlist_t
*
pPlaylist
=
getIntf
()
->
p_sys
->
p_playlist
;
if
(
pPlaylist
!=
NULL
)
if
(
pPlaylist
!=
NULL
)
{
var_SetBool
(
pPlaylist
,
"loop"
,
m_value
);
vlc_value_t
val
;
val
.
b_bool
=
m_value
;
var_Set
(
pPlaylist
,
"loop"
,
val
);
}
}
}
...
@@ -80,11 +72,7 @@ void CmdPlaylistRepeat::execute()
...
@@ -80,11 +72,7 @@ void CmdPlaylistRepeat::execute()
{
{
playlist_t
*
pPlaylist
=
getIntf
()
->
p_sys
->
p_playlist
;
playlist_t
*
pPlaylist
=
getIntf
()
->
p_sys
->
p_playlist
;
if
(
pPlaylist
!=
NULL
)
if
(
pPlaylist
!=
NULL
)
{
var_SetBool
(
pPlaylist
,
"repeat"
,
m_value
);
vlc_value_t
val
;
val
.
b_bool
=
m_value
;
var_Set
(
pPlaylist
,
"repeat"
,
val
);
}
}
}
...
@@ -125,7 +113,5 @@ void CmdPlaylistFirst::execute()
...
@@ -125,7 +113,5 @@ void CmdPlaylistFirst::execute()
{
{
playlist_t
*
pPlaylist
=
getIntf
()
->
p_sys
->
p_playlist
;
playlist_t
*
pPlaylist
=
getIntf
()
->
p_sys
->
p_playlist
;
playlist_Lock
(
pPlaylist
);
playlist_Control
(
pPlaylist
,
PLAYLIST_PLAY
,
pl_Unlocked
);
playlist_Control
(
pPlaylist
,
PLAYLIST_PLAY
,
pl_Locked
);
playlist_Unlock
(
pPlaylist
);
}
}
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