Commit 31715344 authored by Laurent Aimar's avatar Laurent Aimar

Removed obsolete BUFFERING_S input state.

 The associated libvlc_MediaPlayerBuffering and libvlc_Buffering value could
probably be removed (not done as I do not know the maintainer opinion).
parent 2d98c228
......@@ -477,7 +477,6 @@ typedef enum input_state_e
{
INIT_S = 0,
OPENING_S,
BUFFERING_S,
PLAYING_S,
PAUSE_S,
END_S,
......
......@@ -400,10 +400,6 @@ static void ParseExecute( httpd_file_sys_t *p_args, char *p_buffer,
{
state = "opening/connecting";
}
else if( val.i_int == BUFFERING_S )
{
state = "buffering";
}
else if( val.i_int == PAUSE_S )
{
state = "paused";
......
......@@ -316,7 +316,6 @@ MediaControlView::SetStatus(int status, int rate)
{
case PLAYING_S:
case OPENNING_S:
case BUFFERING_S:
fPlayPause->SetPlaying();
break;
case PAUSE_S:
......
......@@ -1506,8 +1506,7 @@ static void * manage_cleanup( void * args )
/* seekable streams */
cachedInputState = input_GetState( p_input );
if ( cachedInputState == INIT_S ||
cachedInputState == OPENING_S ||
cachedInputState == BUFFERING_S )
cachedInputState == OPENING_S )
{
b_buffering = YES;
}
......
......@@ -1547,10 +1547,6 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
{
mvnprintw( y++, 0, COLS, _(" State : Opening/Connecting %s"), psz_state );
}
else if( val.i_int == BUFFERING_S )
{
mvnprintw( y++, 0, COLS, _(" State : Buffering %s"), psz_state );
}
else if( val.i_int == PAUSE_S )
{
mvnprintw( y++, 0, COLS, _(" State : Paused %s"), psz_state );
......
......@@ -49,7 +49,6 @@ static const libvlc_state_t vlc_to_libvlc_state_array[] =
{
[INIT_S] = libvlc_NothingSpecial,
[OPENING_S] = libvlc_Opening,
[BUFFERING_S] = libvlc_Buffering,
[PLAYING_S] = libvlc_Playing,
[PAUSE_S] = libvlc_Paused,
[END_S] = libvlc_Ended,
......@@ -148,10 +147,6 @@ input_state_changed( const vlc_event_t * event, void * p_userdata )
libvlc_media_set_state( p_mi->p_md, libvlc_Opening, NULL);
forwarded_event.type = libvlc_MediaPlayerOpening;
break;
case BUFFERING_S:
libvlc_media_set_state( p_mi->p_md, libvlc_Buffering, NULL);
forwarded_event.type = libvlc_MediaPlayerBuffering;
break;
case PLAYING_S:
libvlc_media_set_state( p_mi->p_md, libvlc_Playing, NULL);
forwarded_event.type = libvlc_MediaPlayerPlaying;
......
......@@ -2395,10 +2395,6 @@ static int InputSourceInit( input_thread_t *p_input,
{
int64_t i_pts_delay;
/* */
if( b_master )
input_ChangeState( p_input, BUFFERING_S );
/* Get infos from access_demux */
demux_Control( in->p_demux,
DEMUX_GET_PTS_DELAY, &i_pts_delay );
......@@ -2535,9 +2531,6 @@ static int InputSourceInit( input_thread_t *p_input,
}
/* Create the stream_t */
if( b_master )
input_ChangeState( p_input, BUFFERING_S );
in->p_stream = stream_AccessNew( in->p_access, p_input->b_preparsing );
/* Restor old value */
......
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