Commit b2efc40a authored by Laurent Aimar's avatar Laurent Aimar

Added INPUT_EVENT_DEAD event.

parent 81ccc88f
......@@ -520,8 +520,12 @@ typedef enum input_event_type_e
{
/* "state" has changed */
INPUT_EVENT_STATE,
/* b_dead is true */
INPUT_EVENT_DEAD,
/* "rate" has changed */
INPUT_EVENT_RATE,
/* At least one of "position" or "time" or "length" has changed */
INPUT_EVENT_TIMES,
......
......@@ -39,6 +39,13 @@ static void Trigger( input_thread_t *p_input, int i_type );
/*****************************************************************************
* Event for input.c
*****************************************************************************/
void input_SendEventDead( input_thread_t *p_input )
{
p_input->b_dead = true;
Trigger( p_input, INPUT_EVENT_DEAD );
}
void input_SendEventTimes( input_thread_t *p_input,
double f_position, mtime_t i_time, mtime_t i_length )
{
......
......@@ -33,6 +33,7 @@
/*****************************************************************************
* Event for input.c
*****************************************************************************/
void input_SendEventDead( input_thread_t *p_input );
void input_SendEventTimes( input_thread_t *p_input, double f_position, mtime_t i_time, mtime_t i_length );
void input_SendEventStatistics( input_thread_t *p_input );
void input_SendEventRate( input_thread_t *p_input, int i_rate );
......
......@@ -520,7 +520,9 @@ static void *Run( vlc_object_t *p_this )
End( p_input );
exit:
p_input->b_dead = true;
/* Tell we're dead */
input_SendEventDead( p_input );
vlc_restorecancel( canc );
return NULL;
}
......@@ -1398,7 +1400,7 @@ static void End( input_thread_t * p_input )
}
/* Tell we're dead */
p_input->b_dead = true;
input_SendEventDead( p_input );
}
/*****************************************************************************
......
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