]> git.sesse.net Git - vlc/commitdiff
Removed unused STOP_S input state.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 4 Dec 2008 21:36:37 +0000 (22:36 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 4 Dec 2008 21:36:37 +0000 (22:36 +0100)
 The associated libvlc_MediaPlayerStopped and libvlc_Stopped value could
probably be removed (not done as I do not know the maintainer opinion).

include/vlc_input.h
modules/control/dbus.c
modules/gui/ncurses.c
src/control/media_player.c

index f241d7df7ebf27d5075a286219bbf429cdcbc11b..9bee57233e2f935b294d5ab030f98c95bf9ecf0a 100644 (file)
@@ -479,7 +479,6 @@ typedef enum input_state_e
     BUFFERING_S,
     PLAYING_S,
     PAUSE_S,
-    STOP_S,
     END_S,
     ERROR_S,
 } input_state_e;
index 28ffe2fa5253d0d54163d93d9bcac91e53eea216..79aaca13fa2054076ac0bc9c3a371e8e216f781b 100644 (file)
@@ -942,7 +942,7 @@ static int StateChange( vlc_object_t *p_this, const char* psz_var,
     }
 
     if( newval.i_int == PLAYING_S || newval.i_int == PAUSE_S ||
-        newval.i_int == STOP_S ||  newval.i_int == END_S )
+        newval.i_int == END_S )
     {
         StatusChangeSignal( p_sys->p_conn, (void*) p_intf );
     }
index aa04a67108dc34a025685b08eb0ca7e0b1ce7d6d..74193f89d63c93f679dc6ae14487364d5a4ef7c4 100644 (file)
@@ -1543,10 +1543,6 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
         {
             mvnprintw( y++, 0, COLS, _(" State    : Playing %s"), psz_state );
         }
-        else if( val.i_int == STOP_S )
-        {
-            mvnprintw( y++, 0, COLS, _(" State    : Stopped %s"), psz_state );
-        }
         else if( val.i_int == OPENING_S )
         {
             mvnprintw( y++, 0, COLS, _(" State    : Opening/Connecting %s"), psz_state );
index 8a191930c215862448fdae12aec2f220a182bfc7..c060dbc7681f3c9681433d560fe631b8fb481425 100644 (file)
@@ -52,7 +52,6 @@ static const libvlc_state_t vlc_to_libvlc_state_array[] =
     [BUFFERING_S]   = libvlc_Buffering,
     [PLAYING_S]     = libvlc_Playing,
     [PAUSE_S]       = libvlc_Paused,
-    [STOP_S]        = libvlc_Stopped,
     [END_S]         = libvlc_Ended,
     [ERROR_S]       = libvlc_Error,
 };
@@ -161,10 +160,6 @@ input_state_changed( const vlc_event_t * event, void * p_userdata )
             libvlc_media_set_state( p_mi->p_md, libvlc_Paused, NULL);
             forwarded_event.type = libvlc_MediaPlayerPaused;
             break;
-        case STOP_S:
-            libvlc_media_set_state( p_mi->p_md, libvlc_Stopped, NULL);
-            forwarded_event.type = libvlc_MediaPlayerStopped;
-            break;
         case END_S:
             libvlc_media_set_state( p_mi->p_md, libvlc_Ended, NULL);
             forwarded_event.type = libvlc_MediaPlayerEndReached;