Commit 35f50bdc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

podcast: use input "state" variable instead of b_eof/b_error

parent 72b8c9e5
......@@ -235,8 +235,9 @@ static void *Run( void *data )
for( int i = 0; i < p_sd->p_sys->i_input; i++ )
{
input_thread_t *p_input = p_sd->p_sys->pp_input[i];
int state = var_GetInteger( p_input, "state" );
if( p_input->b_eof || p_input->b_error )
if( state == END_S || state == ERROR_S )
{
input_Stop( p_input );
input_Close( 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