if( i_ret == 0 ) /* EOF */
{
+ bool b_pause_after_each = var_CreateGetBool( p_input, "play-and-pause" );
msg_Dbg( p_input, "EOF reached" );
+ if ( b_pause_after_each )
+ {
+ msg_Dbg( p_input, "pausing at EOF (pause after each)");
+ vlc_value_t pause_state;
+ pause_state.i_int = PAUSE_S;
+ Control( p_input, INPUT_CONTROL_SET_STATE, pause_state );
+ }
p_input->p->input.b_eof = true;
}
else if( i_ret < 0 )
#define PAE_TEXT N_("Play and exit")
#define PAE_LONGTEXT N_( \
- "Exit if there are no more items in the playlist." )
+ "Exit if there are no more items in the playlist." )
+
+#define PAP_TEXT N_("Play and pause")
+#define PAP_LONGTEXT N_( \
+ "Pause each item in the playlist on the last frame." )
#define ML_TEXT N_("Use media library")
#define ML_LONGTEXT N_( \
add_bool( "play-and-exit", 0, NULL, PAE_TEXT, PAE_LONGTEXT, false )
add_bool( "play-and-stop", 0, NULL, PAS_TEXT, PAS_LONGTEXT, false )
change_safe()
+ add_bool( "play-and-pause", 0, NULL, PAP_TEXT, PAP_LONGTEXT, true )
+ change_safe()
add_bool( "media-library", 1, NULL, ML_TEXT, ML_LONGTEXT, false )
add_bool( "playlist-tree", 0, NULL, PLTREE_TEXT, PLTREE_LONGTEXT, false )