From: Adam Sutton Date: Mon, 15 Apr 2013 11:13:44 +0000 (+0100) Subject: htsp: fix bug causing imagecache file open to crash. X-Git-Tag: v3.9~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82a1edd132d5531823e3673fbb9c08105780e59c;p=thirdparty%2Ftvheadend.git htsp: fix bug causing imagecache file open to crash. --- diff --git a/src/htsp_server.c b/src/htsp_server.c index f0728cfbc..97fa950da 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");