diff mbox

[FFmpeg-devel,11/17] lavfhttpd.c: Adapt to new interface (stub), fix includes

Message ID 20180628005117.18902-12-klaxa1337@googlemail.com
State New
Headers show

Commit Message

Stephan Holljes June 28, 2018, 12:51 a.m. UTC
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
---
 lavfhttpd.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/lavfhttpd.c b/lavfhttpd.c
index 3f29ec4..7c95001 100644
--- a/lavfhttpd.c
+++ b/lavfhttpd.c
@@ -21,6 +21,7 @@ 
 
 #include "httpd.h"
 #include <libavutil/opt.h>
+#include <libavformat/avformat.h>
 
 
 int lavfhttpd_init(void **server, struct HTTPDConfig config)
@@ -57,13 +58,13 @@  int lavfhttpd_init(void **server, struct HTTPDConfig config)
     return 0;
 }
 
-int lavfhttpd_accept(void *server, struct HTTPClient **client, int reply_code)
+int lavfhttpd_accept(void *server, struct HTTPClient **client, const char **valid_files)
 {
     AVIOContext *server_ctx = (AVIOContext*) server;
     AVIOContext *client_ctx = NULL;
     struct HTTPClient *client_http = NULL;
     int ret, ret2, handshake;
-    int reply_code2 = reply_code;
+    int reply_code2 = 200; // = reply_code;
     char *method, *resource;
     if ((ret = avio_accept(server_ctx, &client_ctx)) < 0) {
         if (ret == AVERROR(ETIMEDOUT)) {