[vlc-commits] htcpcp: handle 418 I'm a teapot
Pierre Ynard
git at videolan.org
Thu Mar 31 22:05:37 CEST 2011
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Mar 31 22:05:44 2011 +0200| [3c4fc2f37dea2ec628e21f133ec3ac460419d732] | committer: Pierre Ynard
htcpcp: handle 418 I'm a teapot
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c4fc2f37dea2ec628e21f133ec3ac460419d732
---
modules/access/htcpcp.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules/access/htcpcp.c b/modules/access/htcpcp.c
index 93513a1..88f13a5 100644
--- a/modules/access/htcpcp.c
+++ b/modules/access/htcpcp.c
@@ -135,8 +135,13 @@ static ssize_t Read (access_t *access, uint8_t *buf, size_t len)
if ((code / 100) != 2)
{
msg_Err (access, "server error %u", code);
- dialog_FatalWait (access, N_("Coffee pot"),
- N_("The pot failed to brew coffee (server error %u)."), code);
+ if (code == 418)
+ dialog_FatalWait (access, N_("Teapot"), "%s",
+ N_("The server is a teapot. You can't brew coffee with "
+ "a teapot."));
+ else
+ dialog_FatalWait (access, N_("Coffee pot"),
+ N_("The pot failed to brew coffee (server error %u)."), code);
goto error;
}
More information about the vlc-commits
mailing list