Page 1 of 1

Input strema lost

Posted: 10 Jan 2010 11:40
by Idsa
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?

Re: Input strema lost

Posted: 11 Jan 2010 12:23
by Jean-Baptiste Kempf
Well, the issue is that it isn't stopped, it just doesn't receive frames.

Re: Input strema lost

Posted: 12 Jan 2010 05:07
by Idsa
But there is surely some mechanism for such situations in VLC player.
I have just plugged out my camera cabel, VLC waited for about half a minute and then stopped. Could you tell me where I can find how it works in VLC?

Re: Input strema lost

Posted: 12 Jan 2010 17:19
by RĂ©mi Denis-Courmont
The RTSP timeout was probably 30 seconds.