From 82a1edd132d5531823e3673fbb9c08105780e59c Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Mon, 15 Apr 2013 12:13:44 +0100 Subject: [PATCH] htsp: fix bug causing imagecache file open to crash. --- src/htsp_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htsp_server.c b/src/htsp_server.c index f0728cfb..97fa950d 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -1521,7 +1521,7 @@ htsp_method_file_open(htsp_connection_t *htsp, htsmsg_t *in) int fd = imagecache_open(atoi(s2)); if (fd <= 0) return htsp_error("failed to open image"); - return htsp_file_open(htsp, NULL, fd); + return htsp_file_open(htsp, str, fd); } else { return htsp_error("Unknown file");