htsp: fix bug causing imagecache file open to crash.

(cherry picked from commit 82a1edd132)
This commit is contained in:
Adam Sutton 2013-04-15 12:13:44 +01:00
parent 7099e5d23b
commit d14003dab6

View file

@ -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");