Input strema lost
Posted: 10 Jan 2010 11:40
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):
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?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 );
}