]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp: fix bug causing imagecache file open to crash.
authorAdam Sutton <dev@adamsutton.me.uk>
Mon, 15 Apr 2013 11:13:44 +0000 (12:13 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Mon, 15 Apr 2013 15:24:46 +0000 (16:24 +0100)
(cherry picked from commit 82a1edd132d5531823e3673fbb9c08105780e59c)

src/htsp_server.c

index 8f76fe47f2bf41f27ed1d520b6f0586bca596394..741d5b018ff839df976d9b281dfa3cd8da4ccb30 100644 (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");