From cbdad87eb7b57d4da0fd679f9b86c6f0aeacd5b3 Mon Sep 17 00:00:00 2001 From: "hadess@cookie.hadess.net" Date: Fri, 11 May 2007 16:27:50 +0100 Subject: Throw a XINE_MSG_PERMISSION_ERROR error when HTTP returns a 401 status Patch from Dmitri Fedortchenko angelhill.net>, required for upstream Totem bug: http://bugzilla.gnome.org/show_bug.cgi?id=418316 --- src/input/input_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input/input_http.c') diff --git a/src/input/input_http.c b/src/input/input_http.c index 6b7ae9158..6e8932700 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -829,7 +829,7 @@ static int http_plugin_open (input_plugin_t *this_gen ) { _("input_http: http status not 2xx: >%d %s<\n"), httpcode, httpstatus); return -7; - } else if (httpcode == 403) { + } else if (httpcode == 403 || httpcode == 401) { _x_message(this->stream, XINE_MSG_PERMISSION_ERROR, this->mrl, NULL); xine_log (this->stream->xine, XINE_LOG_MSG, _("input_http: http status not 2xx: >%d %s<\n"), -- cgit v1.2.3