{
/* "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,
/*****************************************************************************
* 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 )
{
/*****************************************************************************
* 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 );
End( p_input );
exit:
- p_input->b_dead = true;
+ /* Tell we're dead */
+ input_SendEventDead( p_input );
+
vlc_restorecancel( canc );
return NULL;
}
}
/* Tell we're dead */
- p_input->b_dead = true;
+ input_SendEventDead( p_input );
}
/*****************************************************************************