Commit db0f37ab authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

playlist: do create play-and-exit variable

(as with play-and-stop)
parent 50293143
...@@ -483,7 +483,6 @@ static void VariablesInit( playlist_t *p_playlist ) ...@@ -483,7 +483,6 @@ static void VariablesInit( playlist_t *p_playlist )
/* Variables to control playback */ /* Variables to control playback */
var_Create( p_playlist, "playlist-autostart", VLC_VAR_BOOL | VLC_VAR_DOINHERIT ); 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_Create( p_playlist, "random", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_AddCallback( p_playlist, "random", RandomCallback, NULL ); var_AddCallback( p_playlist, "random", RandomCallback, NULL );
var_Create( p_playlist, "repeat", VLC_VAR_BOOL | VLC_VAR_DOINHERIT ); var_Create( p_playlist, "repeat", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
......
...@@ -510,7 +510,7 @@ static void LoopRequest( playlist_t *p_playlist, int i_status ) ...@@ -510,7 +510,7 @@ static void LoopRequest( playlist_t *p_playlist, int i_status )
msg_Dbg( p_playlist, "nothing to play" ); msg_Dbg( p_playlist, "nothing to play" );
p_sys->status.i_status = PLAYLIST_STOPPED; p_sys->status.i_status = PLAYLIST_STOPPED;
if( var_GetBool( p_playlist, "play-and-exit" ) ) if( var_InheritBool( p_playlist, "play-and-exit" ) )
{ {
msg_Info( p_playlist, "end of playlist, exiting" ); msg_Info( p_playlist, "end of playlist, exiting" );
libvlc_Quit( p_playlist->p_libvlc ); libvlc_Quit( p_playlist->p_libvlc );
......
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