Properly error out in HTML5 video streaming.

This commit is contained in:
Joris Vink 2014-10-31 10:13:45 +01:00
parent 27b4447a30
commit b1797231cc
1 changed files with 3 additions and 1 deletions

View File

@ -173,8 +173,10 @@ video_open(struct http_request *req, struct video **out)
struct video *v;
char fpath[MAXPATHLEN];
if (!kore_snprintf(fpath, sizeof(fpath), NULL, "videos%s", req->path))
if (!kore_snprintf(fpath, sizeof(fpath), NULL, "videos%s", req->path)) {
http_response(req, 500, NULL, 0);
return (KORE_RESULT_ERROR);
}
TAILQ_FOREACH(v, &videos, list) {
if (!strcmp(v->path, fpath)) {