mirror of
https://code.videolan.org/videolan/vlc
synced 2024-07-21 07:24:15 +02:00
oldrc: use input "state" variable instead of b_dead
This commit is contained in:
parent
2772acfee7
commit
ed69f1dcc8
@ -524,8 +524,11 @@ static void *Run( void *data )
|
|||||||
var_AddCallback( p_sys->p_input, "intf-event", InputEvent, p_intf );
|
var_AddCallback( p_sys->p_input, "intf-event", InputEvent, p_intf );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#warning This is not reliable...
|
|
||||||
else if( p_sys->p_input->b_dead )
|
int state;
|
||||||
|
if( p_sys->p_input != NULL
|
||||||
|
&& ((state = var_GetInteger( p_sys->p_input, "state")) == ERROR_S
|
||||||
|
|| state == END_S) )
|
||||||
{
|
{
|
||||||
var_DelCallback( p_sys->p_input, "intf-event", InputEvent, p_intf );
|
var_DelCallback( p_sys->p_input, "intf-event", InputEvent, p_intf );
|
||||||
vlc_object_release( p_sys->p_input );
|
vlc_object_release( p_sys->p_input );
|
||||||
|
Loading…
Reference in New Issue
Block a user