diff mbox

[FFmpeg-devel,2/7] ffserver.c: Disconnect client if file was requested, but no fileserver was started.

Message ID 1533164424-12395-3-git-send-email-klaxa1337@googlemail.com
State New
Headers show

Commit Message

Stephan Holljes Aug. 1, 2018, 11 p.m. UTC
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
---
 ffserver.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/ffserver.c b/ffserver.c
index 3b3451e..087963a 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -578,6 +578,11 @@  void *accept_thread(void *arg)
             continue;
         }
 
+        if (!info->fs && requested_file[0]) {
+            info->httpd->close(server, client);
+            continue;
+        }
+
         avio_buffer = av_malloc(AV_BUFSIZE);
         if (!avio_buffer) {
             av_log(client_ctx, AV_LOG_ERROR, "Could not allocate output format context.\n");