blob: 333df22946d0da726a3c76438c04bbe335190701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff -ru radio-0.2.4.org/radio.c radio-0.2.4/radio.c
--- radio-0.2.4.org/radio.c 2007-10-09 18:15:35.000000000 +0200
+++ radio-0.2.4/radio.c 2008-12-22 11:44:16.000000000 +0100
@@ -710,6 +710,9 @@
bool isRadio = false;
if (On && FileName != NULL) {
+ char *vdrfile;
+ asprintf(&vdrfile, "%s/001.vdr", FileName);
+ if (file_exists(vdrfile)) { // check only VDR-Recordings
cFileName fn(FileName, false, true);
cUnbufferedFile *f = fn.Open();
if (f) {
@@ -719,6 +722,8 @@
isRadio = (b[0] == 0x00) && (b[1] == 0x00) && (b[2] == 0x01) && (0xc0 <= b[3] && b[3] <= 0xdf);
}
}
+ free(vdrfile);
+ }
if (isRadio) {
if (!file_exists(ReplayFile))
|