Commit 57dda7ff authored by Jean-Paul Saman's avatar Jean-Paul Saman

Remove FORWARD_S and BACKWARD_S from input state.

The input core does separate playing states for forward or backward direction from the playing state PLAYING_S. If one wants to know in what direction VLC is playing, then he needs to look at the sign value of the "rate" value. Backward playing direction has a negative "rate" value. Forward playing direction has a positive one.
parent 75adef44
...@@ -150,10 +150,6 @@ initvlc( void ) ...@@ -150,10 +150,6 @@ initvlc( void )
mediacontrol_PlayingStatus ); mediacontrol_PlayingStatus );
PyModule_AddIntConstant( p_module, "PauseStatus", PyModule_AddIntConstant( p_module, "PauseStatus",
mediacontrol_PauseStatus ); mediacontrol_PauseStatus );
PyModule_AddIntConstant( p_module, "ForwardStatus",
mediacontrol_ForwardStatus );
PyModule_AddIntConstant( p_module, "BackwardStatus",
mediacontrol_BackwardStatus );
PyModule_AddIntConstant( p_module, "InitStatus", PyModule_AddIntConstant( p_module, "InitStatus",
mediacontrol_InitStatus ); mediacontrol_InitStatus );
PyModule_AddIntConstant( p_module, "EndStatus", PyModule_AddIntConstant( p_module, "EndStatus",
......
...@@ -322,7 +322,7 @@ VLC_PUBLIC_API char * libvlc_media_get_meta( ...@@ -322,7 +322,7 @@ VLC_PUBLIC_API char * libvlc_media_get_meta(
* Get current state of media descriptor object. Possible media states * Get current state of media descriptor object. Possible media states
* are defined in libvlc_structures.c ( libvlc_NothingSpecial=0, * are defined in libvlc_structures.c ( libvlc_NothingSpecial=0,
* libvlc_Opening, libvlc_Buffering, libvlc_Playing, libvlc_Paused, * libvlc_Opening, libvlc_Buffering, libvlc_Playing, libvlc_Paused,
* libvlc_Stopped, libvlc_Forward, libvlc_Backward, libvlc_Ended, * libvlc_Stopped, libvlc_Ended,
* libvlc_Error). * libvlc_Error).
* *
* @see libvlc_state_t * @see libvlc_state_t
......
...@@ -130,7 +130,7 @@ typedef struct libvlc_media_player_t libvlc_media_player_t; ...@@ -130,7 +130,7 @@ typedef struct libvlc_media_player_t libvlc_media_player_t;
* *
* Expected states by web plugins are: * Expected states by web plugins are:
* IDLE/CLOSE=0, OPENING=1, BUFFERING=2, PLAYING=3, PAUSED=4, * IDLE/CLOSE=0, OPENING=1, BUFFERING=2, PLAYING=3, PAUSED=4,
* STOPPING=5, FORWARD=6, BACKWARD=7, ENDED=8, ERROR=9 * STOPPING=5, ENDED=6, ERROR=7
*/ */
typedef enum libvlc_state_t typedef enum libvlc_state_t
{ {
...@@ -140,8 +140,6 @@ typedef enum libvlc_state_t ...@@ -140,8 +140,6 @@ typedef enum libvlc_state_t
libvlc_Playing, libvlc_Playing,
libvlc_Paused, libvlc_Paused,
libvlc_Stopped, libvlc_Stopped,
libvlc_Forward,
libvlc_Backward,
libvlc_Ended, libvlc_Ended,
libvlc_Error libvlc_Error
} libvlc_state_t; } libvlc_state_t;
......
...@@ -75,7 +75,6 @@ typedef enum { ...@@ -75,7 +75,6 @@ typedef enum {
mediacontrol_UndefinedStatus=0, mediacontrol_InitStatus, mediacontrol_UndefinedStatus=0, mediacontrol_InitStatus,
mediacontrol_BufferingStatus, mediacontrol_PlayingStatus, mediacontrol_BufferingStatus, mediacontrol_PlayingStatus,
mediacontrol_PauseStatus, mediacontrol_StopStatus, mediacontrol_PauseStatus, mediacontrol_StopStatus,
mediacontrol_ForwardStatus, mediacontrol_BackwardStatus,
mediacontrol_EndStatus, mediacontrol_ErrorStatus, mediacontrol_EndStatus, mediacontrol_ErrorStatus,
} mediacontrol_PlayerStatus; } mediacontrol_PlayerStatus;
......
...@@ -398,8 +398,6 @@ typedef enum input_state_e ...@@ -398,8 +398,6 @@ typedef enum input_state_e
PLAYING_S, PLAYING_S,
PAUSE_S, PAUSE_S,
STOP_S, STOP_S,
FORWARD_S,
BACKWARD_S,
END_S, END_S,
ERROR_S, ERROR_S,
} input_state_e; } input_state_e;
......
...@@ -75,8 +75,6 @@ static const char *ppsz_input_state[] = { ...@@ -75,8 +75,6 @@ static const char *ppsz_input_state[] = {
N_("Play"), N_("Play"),
N_("Pause"), N_("Pause"),
N_("Stop"), N_("Stop"),
N_("Forward"),
N_("Backward"),
N_("End"), N_("End"),
N_("Error"), N_("Error"),
}; };
......
...@@ -57,8 +57,6 @@ static const libvlc_state_t vlc_to_libvlc_state_array[] = ...@@ -57,8 +57,6 @@ static const libvlc_state_t vlc_to_libvlc_state_array[] =
[PLAYING_S] = libvlc_Playing, [PLAYING_S] = libvlc_Playing,
[PAUSE_S] = libvlc_Paused, [PAUSE_S] = libvlc_Paused,
[STOP_S] = libvlc_Stopped, [STOP_S] = libvlc_Stopped,
[FORWARD_S] = libvlc_Forward,
[BACKWARD_S] = libvlc_Backward,
[END_S] = libvlc_Ended, [END_S] = libvlc_Ended,
[ERROR_S] = libvlc_Error, [ERROR_S] = libvlc_Error,
}; };
...@@ -172,14 +170,6 @@ input_state_changed( const vlc_event_t * event, void * p_userdata ) ...@@ -172,14 +170,6 @@ input_state_changed( const vlc_event_t * event, void * p_userdata )
libvlc_media_set_state( p_mi->p_md, libvlc_Stopped, NULL); libvlc_media_set_state( p_mi->p_md, libvlc_Stopped, NULL);
forwarded_event.type = libvlc_MediaPlayerStopped; forwarded_event.type = libvlc_MediaPlayerStopped;
break; break;
case FORWARD_S:
libvlc_media_set_state( p_mi->p_md, libvlc_Forward, NULL);
forwarded_event.type = libvlc_MediaPlayerForward;
break;
case BACKWARD_S:
libvlc_media_set_state( p_mi->p_md, libvlc_Backward, NULL);
forwarded_event.type = libvlc_MediaPlayerBackward;
break;
case END_S: case END_S:
libvlc_media_set_state( p_mi->p_md, libvlc_Ended, NULL); libvlc_media_set_state( p_mi->p_md, libvlc_Ended, NULL);
forwarded_event.type = libvlc_MediaPlayerEndReached; forwarded_event.type = libvlc_MediaPlayerEndReached;
......
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