From 2ebb089a9c085035028b03324257b88a7f3d360d Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Tue, 13 Nov 2012 22:06:08 +0200 Subject: rtsp: notify user with XINE_MSG_AUTHENTICATION_NEEDED if rtsp fails with error 401 --- src/input/librtsp/rtsp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input/librtsp/rtsp.c b/src/input/librtsp/rtsp.c index 0e65d97d7..c0570b966 100644 --- a/src/input/librtsp/rtsp.c +++ b/src/input/librtsp/rtsp.c @@ -162,6 +162,9 @@ static int rtsp_get_code(rtsp_t *s, const char *string) { if(code != 200) xprintf(s->stream->xine, XINE_VERBOSITY_DEBUG, "librtsp: server responds: '%s'\n", string); + if (code == 401) + _x_message(s->stream, XINE_MSG_AUTHENTICATION_NEEDED, + s->mrl, NULL, NULL); return code; } -- cgit v1.2.3