vdr_streamdev: fix recordings urls.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 29 Apr 2013 12:27:38 +0000 (14:27 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 29 Apr 2013 12:27:38 +0000 (14:27 +0200)
lfs/vdr_streamdev
src/patches/vdr-streamdev_recordings-64.patch [new file with mode: 0644]

index 31aa6553b848c7b813a031e76c7dbbbea4718e44..59dbd04ebef45aad4b6e98ec9e4fcaddd7342cad 100644 (file)
@@ -85,6 +85,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
 
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/vdr-streamdev_recordings-64.patch
+
        cd $(DIR_APP) && sed -i 's@$(VDRDIR)/device.h@/usr/include/vdr/device.h@' Makefile
        cd $(DIR_APP) && make $(MAKE_TUNING) LIBDIR=. VDRDIR=/usr/lib/vdr \
                CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
diff --git a/src/patches/vdr-streamdev_recordings-64.patch b/src/patches/vdr-streamdev_recordings-64.patch
new file mode 100644 (file)
index 0000000..00baf89
--- /dev/null
@@ -0,0 +1,12 @@
+diff -Naur vdr-streamdev-10db11ac.org/server/menuHTTP.c vdr-streamdev-10db11ac/server/menuHTTP.c
+--- vdr-streamdev-10db11ac.org/server/menuHTTP.c       2013-02-18 12:43:02.000000000 +0100
++++ vdr-streamdev-10db11ac/server/menuHTTP.c   2013-04-29 13:34:11.818857417 +0200
+@@ -28,7 +28,7 @@
+ {
+       struct stat st;
+       if (stat(current->FileName(), &st) == 0)
+-              return cString::sprintf("%lu:%lu.rec", st.st_dev, st.st_ino);
++              return cString::sprintf("%lu:%lu.rec", (unsigned long) st.st_dev, (unsigned long) st.st_ino);
+       return "";
+ }