]> 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 11:13:44 +0000 (12:13 +0100)
src/htsp_server.c

index f0728cfbc0fd68402eff3a32b8def60b8cd107e6..97fa950da63b6b6156b04482e5e1107c9ff1f66a 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");