* demux.c: demux functions for dvdplay.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: demux.c,v 1.8 2004/03/03 20:39:51 gbazin Exp $
+ * $Id$
*
* Author: Stéphane Borel <stef@via.ecp.fr>
*
pgrm_descriptor_t * p_pgrm;
/* when we receive still_time flag, we have to pause immediately */
- input_SetStatus( p_input, INPUT_STATUS_PAUSE );
+ var_SetInteger( p_input, "state", PAUSE_S );
dvdIntfStillTime( p_dvd->p_intf, p_dvd->i_still_time );
p_dvd->i_still_time = 0;
* intf.c: interface for DVD video manager
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: intf.c,v 1.9 2003/10/29 01:33:27 gbazin Exp $
+ * $Id$
*
* Authors: Stéphane Borel <stef@via.ecp.fr>
*
else
{
/* still time elasped */
- input_SetStatus( p_intf->p_sys->p_input,
- INPUT_STATUS_PLAY );
+ var_SetInteger( p_intf->p_sys->p_input, "state", PLAYING_S );
p_intf->p_sys->m_still_time = 0;
p_intf->p_sys->b_still = 0;
mlast = 0;
}
if( !p_intf->p_sys->m_still_time )
{
- input_SetStatus( p_intf->p_sys->p_input,
- INPUT_STATUS_PLAY );
+ var_SetInteger( p_intf->p_sys->p_input, "state", PLAYING_S );
}
mlast = mtime;
}
if( i_activate && p_intf->p_sys->b_still )
{
- input_SetStatus( p_intf->p_sys->p_input, INPUT_STATUS_PLAY );
+ var_SetInteger( p_intf->p_sys->p_input, "state", PLAYING_S );
p_intf->p_sys->b_still = 0;
p_intf->p_sys->b_inf_still = 0;
p_intf->p_sys->m_still_time = 0;
if( i_activate && p_intf->p_sys->b_still )
{
- input_SetStatus( p_intf->p_sys->p_input, INPUT_STATUS_PLAY );
+ var_SetInteger( p_intf->p_sys->p_input, "state", PLAYING_S );
p_intf->p_sys->b_still = 0;
p_intf->p_sys->b_inf_still = 0;
p_intf->p_sys->m_still_time = 0;
{
vlc_mutex_lock( &p_intf->change_lock );
p_intf->p_sys->m_still_time = 0;
- input_SetStatus( p_intf->p_sys->p_input, INPUT_STATUS_PLAY );
+ var_SetInteger( p_intf->p_sys->p_input, "state", PLAYING_S );
vlc_mutex_unlock( &p_intf->change_lock );
return VLC_SUCCESS;
#if 1
p_vcd->p_intf->p_sys->b_still = 1;
- input_SetStatus( p_input, INPUT_STATUS_PAUSE );
+ var_SetInteger( p_input, "state", PAUSE_S );
#endif
vlc_mutex_lock( &p_input->stream.stream_lock );
input_ClockManageControl( p_input, p_pgrm, 0 );
p_vcd->p_intf->p_sys->b_still = 1;
- input_SetStatus( p_input, INPUT_STATUS_PAUSE );
+ var_SetInteger( p_input, "state", PAUSE_S );
return i_read + M2F2_SECTOR_SIZE;
}
#if 1
if ( p_vcd->in_still != b_was_still ) {
if (p_input->stream.pp_selected_es) {
- input_SetStatus( p_input, INPUT_STATUS_END );
- input_SetStatus( p_input, INPUT_STATUS_PLAY );
+ var_SetInteger( p_input, "state", PLAYING_S );
}
}
#endif
* demux.c: demux functions for dvdplay.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: demux.c,v 1.4 2004/03/03 20:39:51 gbazin Exp $
+ * $Id$
*
* Author: Stéphane Borel <stef@via.ecp.fr>
*
pgrm_descriptor_t * p_pgrm;
/* when we receive still_time flag, we have to pause immediately */
- input_SetStatus( p_input, INPUT_STATUS_PAUSE );
+ var_SetInteger( p_input, "state", PAUSE_S );
vcdIntfStillTime( p_vcd->p_intf, p_vcd->i_still_time );
p_vcd->i_still_time = 0;
* intf.c: Video CD interface to handle user interaction and still time
*****************************************************************************
* Copyright (C) 2002,2003 VideoLAN
- * $Id: intf.c,v 1.12 2003/12/22 14:32:55 sam Exp $
+ * $Id$
*
* Author: Rocky Bernstein <rocky@panix.com>
* from DVD code by Stéphane Borel <stef@via.ecp.fr>
{
/* Still time has elasped; set to continue playing. */
dbg_print(INPUT_DBG_STILL, "wait time done - setting play");
- input_SetStatus( p_intf->p_sys->p_input,
- INPUT_STATUS_PLAY );
+ var_SetInteger( p_intf->p_sys->p_input, "state", PLAYING_S );
p_intf->p_sys->m_still_time = 0;
p_intf->p_sys->b_still = 0;
mlast = 0;
if( p_intf->p_sys->b_still )
{
dbg_print(INPUT_DBG_STILL, "Playing still after activate");
- input_SetStatus( p_intf->p_sys->p_input, INPUT_STATUS_PLAY );
+ var_SetInteger( p_intf->p_sys->p_input, "state", PLAYING_S );
p_intf->p_sys->b_still = 0;
p_intf->p_sys->b_inf_still = 0;
p_intf->p_sys->m_still_time = 0;
{
vlc_mutex_lock( &p_intf->change_lock );
p_intf->p_sys->m_still_time = 0;
- input_SetStatus( p_intf->p_sys->p_input, INPUT_STATUS_PLAY );
+ var_SetInteger( p_intf->p_sys->p_input, "state", PLAYING_S );
vlc_mutex_unlock( &p_intf->change_lock );
return VLC_SUCCESS;