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
db0f37ab
Commit
db0f37ab
authored
Oct 07, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: do create play-and-exit variable
(as with play-and-stop)
parent
50293143
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
src/playlist/engine.c
src/playlist/engine.c
+0
-1
src/playlist/thread.c
src/playlist/thread.c
+1
-1
No files found.
src/playlist/engine.c
View file @
db0f37ab
...
...
@@ -483,7 +483,6 @@ static void VariablesInit( playlist_t *p_playlist )
/* Variables to control playback */
var_Create
(
p_playlist
,
"playlist-autostart"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_playlist
,
"play-and-exit"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_playlist
,
"random"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_AddCallback
(
p_playlist
,
"random"
,
RandomCallback
,
NULL
);
var_Create
(
p_playlist
,
"repeat"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
...
...
src/playlist/thread.c
View file @
db0f37ab
...
...
@@ -510,7 +510,7 @@ static void LoopRequest( playlist_t *p_playlist, int i_status )
msg_Dbg
(
p_playlist
,
"nothing to play"
);
p_sys
->
status
.
i_status
=
PLAYLIST_STOPPED
;
if
(
var_
Ge
tBool
(
p_playlist
,
"play-and-exit"
)
)
if
(
var_
Inheri
tBool
(
p_playlist
,
"play-and-exit"
)
)
{
msg_Info
(
p_playlist
,
"end of playlist, exiting"
);
libvlc_Quit
(
p_playlist
->
p_libvlc
);
...
...
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