summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2007-04-10 14:36:11 +0000
committerLuca Abeni <lucabe72@email.it>2007-04-10 14:36:11 +0000
commit7e665cd3ff1c8843f6be922dce0d610404215f09 (patch)
tree570fd405129bfcdae8196b7c4019add014f7c03b /ffserver.c
parentc4fe61ff8720f7ef5bbfc292d203f90848465a63 (diff)
Fix the generation of RTSP reply headers (the "DEF()" macro is not used
anymore in rtspcodes.h) Originally committed as revision 8710 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c36
1 files changed, 33 insertions, 3 deletions
diff --git a/ffserver.c b/ffserver.c
index 063ac5a028..603227db5d 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2508,9 +2508,39 @@ static void rtsp_reply_header(HTTPContext *c, enum RTSPStatusCode error_number)
char buf2[32];
switch(error_number) {
-#define DEF(n, c, s) case c: str = s; break;
-#include "rtspcodes.h"
-#undef DEF
+ case RTSP_STATUS_OK:
+ str = "OK";
+ break;
+ case RTSP_STATUS_METHOD:
+ str = "Method Not Allowed";
+ break;
+ case RTSP_STATUS_BANDWIDTH:
+ str = "Not Enough Bandwidth";
+ break;
+ case RTSP_STATUS_SESSION:
+ str = "Session Not Found";
+ break;
+ case RTSP_STATUS_STATE:
+ str = "Method Not Valid in This State";
+ break;
+ case RTSP_STATUS_AGGREGATE:
+ str = "Aggregate operation not allowed";
+ break;
+ case RTSP_STATUS_ONLY_AGGREGATE:
+ str = "Only aggregate operation allowed";
+ break;
+ case RTSP_STATUS_TRANSPORT:
+ str = "Unsupported transport";
+ break;
+ case RTSP_STATUS_INTERNAL:
+ str = "Internal Server Error";
+ break;
+ case RTSP_STATUS_SERVICE:
+ str = "Service Unavailable";
+ break;
+ case RTSP_STATUS_VERSION:
+ str = "RTSP Version not supported";
+ break;
default:
str = "Unknown Error";
break;