Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
DWORD i_dw;
/* On Win32, select() only works on socket descriptors */
- while( WaitForSingleObject( p_intf->p_sys->hConsoleIn,
- INTF_IDLE_SLEEP/1000 ) == WAIT_OBJECT_0 )
+ while( WaitForSingleObjectEx( p_intf->p_sys->hConsoleIn,
+ INTF_IDLE_SLEEP/1000, TRUE ) == WAIT_OBJECT_0 )
{
while( *pi_size < MAX_LINE_LENGTH &&
ReadConsoleInput( p_intf->p_sys->hConsoleIn, &input_record,
}
}
+ vlc_testcancel ();
+
return false;
}
#endif