I need to handle the situation when LAN-camera signal is lost during the recording. I have found the following code at VLC sources (media_player.c):
else if( newval.i_int == INPUT_EVENT_ABORT )
{
libvlc_state_t libvlc_state = libvlc_Stopped;
event.type = libvlc_MediaPlayerStopped;
set_state( p_mi, libvlc_state );
libvlc_event_send( p_mi->p_event_manager, &event );
}
So I hoped MediaPlayerStopped would be raised. But it is not raised
But VLC works correctly when I plug-out my LAN-camera cabel. Could you provide me a better way of handling this situation?