[FFmpeg-devel] [PATCH 2/7] ffserver.c: Disconnect client if file was requested, but no fileserver was started.
Stephan Holljes
klaxa1337 at googlemail.com
Thu Aug 2 02:00:19 EEST 2018
Signed-off-by: Stephan Holljes <klaxa1337 at googlemail.com>
---
ffserver.c | 5 +++++
1 file changed, 5 insertions(+)
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");
--
2.1.4
More information about the ffmpeg-devel
mailing list