const char *, bool, input_resource_t * );
static int Init ( input_thread_t *p_input );
static void End ( input_thread_t *p_input );
-static void MainLoop( input_thread_t *p_input );
+static void MainLoop( input_thread_t *p_input, bool b_interactive );
static void ObjectKillChildrens( input_thread_t *, vlc_object_t * );
if( !Init( p_input ) )
{
- MainLoop( p_input );
+ MainLoop( p_input, false );
End( p_input );
}
if( Init( p_input ) )
goto exit;
- MainLoop( p_input );
+ MainLoop( p_input, true ); /* FIXME it can be wrong (like with VLM) */
/* Clean up */
End( p_input );
* MainLoop
* The main input loop.
*/
-static void MainLoop( input_thread_t *p_input )
+static void MainLoop( input_thread_t *p_input, bool b_interactive )
{
mtime_t i_start_mdate = mdate();
mtime_t i_intf_update = 0;
mtime_t i_statistic_update = 0;
- bool b_pause_after_eof = var_CreateGetBool( p_input, "play-and-pause" );
+ bool b_pause_after_eof = b_interactive &&
+ var_CreateGetBool( p_input, "play-and-pause" );
/* Start the timer */
stats_TimerStop( p_input, STATS_TIMER_INPUT_LAUNCHING );