summaryrefslogtreecommitdiff
path: root/mymenurecordings.c
diff options
context:
space:
mode:
authorAndreas Mair <andreas@vdr-developer.org>2010-05-29 16:46:25 +0200
committerAndreas Mair <andreas@vdr-developer.org>2010-05-29 16:46:25 +0200
commitab6811d93006be2338c9711b40d1d67533a094ca (patch)
tree5f07a1e15318e4df8af944c780b7eef2ec3de1f6 /mymenurecordings.c
parent4029bd046129693af722a2480ff2f23c7b1e012f (diff)
downloadvdr-plugin-extrecmenu-ab6811d93006be2338c9711b40d1d67533a094ca.tar.gz
vdr-plugin-extrecmenu-ab6811d93006be2338c9711b40d1d67533a094ca.tar.bz2
Version 1.2-test1-am2av1.2-test1-am2a
- Fixed access to 001.vdr/00001.ts and index.vdr/index (Length in recordings list works again).
Diffstat (limited to 'mymenurecordings.c')
-rw-r--r--mymenurecordings.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/mymenurecordings.c b/mymenurecordings.c
index 1563395..607785d 100644
--- a/mymenurecordings.c
+++ b/mymenurecordings.c
@@ -190,7 +190,14 @@ myMenuRecordingsItem::myMenuRecordingsItem(cRecording *Recording,int Level)
stringstream idbuffer;
buffer=filename;
+#if VDRVERSNUM > 10703
+ if (isPesRecording)
+ buffer+="/001.vdr";
+ else
+ buffer+="/00001.ts";
+#else
buffer+="/001.vdr";
+#endif
if(access(buffer.c_str(),R_OK))
{
buffer=filename;
@@ -233,12 +240,19 @@ myMenuRecordingsItem::myMenuRecordingsItem(cRecording *Recording,int Level)
if(mysetup.ShowRecLength)
{
buffer=filename;
+#if VDRVERSNUM > 10703
+ if (isPesRecording)
+ buffer+="/index.vdr";
+ else
+ buffer+="/index";
+#else
buffer+="/index.vdr";
+#endif
struct stat statbuf;
if(!stat(buffer.c_str(),&statbuf))
{
ostringstream strbuf;
- strbuf << setw(3) << (int)(statbuf.st_size/12000) << "'";
+ strbuf << setw(3) << (int)(statbuf.st_size/12000) << "'"; //TODO: 12000 still OK for TS recordings?
// replace leading spaces with fixed blank (right align)
titlebuffer << myStrReplace(strbuf.str(),' ',Icons::FixedBlank()) << '\t';
}