Re: some records not shown in menu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24.02.2011 22:20, zupermen@xxxxxx wrote:
> Hallo,
> 
> there is a small bug in VDR 1.7.16 at the recording menu.
> In some situations VDR shows that a sub-folder (at recordings) holds 2
> recordings. If you open the folder only 1 recording is shown. After
> deleting this record the other one is shown.
> 
> To reproduce the behavior you can record the same show on e.g. ARD and
> ARD-HD or switch of an active timer and switch it on later.

I also have seen this on occasion, but wasn't sure how to reproduce it.
Now I was able to.

Please try the attached patch, it appears to fix this.

Klaus
--- menu.c	2011/02/25 14:24:32	2.26
+++ menu.c	2011/02/26 15:28:32
@@ -2276,7 +2276,7 @@
   for (cRecording *recording = Recordings.First(); recording; recording = Recordings.Next(recording)) {
       if (!base || (strstr(recording->Name(), base) == recording->Name() && recording->Name()[strlen(base)] == FOLDERDELIMCHAR)) {
          cMenuRecordingItem *Item = new cMenuRecordingItem(recording, level);
-         if (*Item->Text() && (!LastItem || strcmp(Item->Text(), LastItemText) != 0)) {
+         if (*Item->Text() && (!Item->IsDirectory() || (!LastItem || !LastItem->IsDirectory() || strcmp(Item->Text(), LastItemText) != 0))) {
             Add(Item);
             LastItem = Item;
             free(LastItemText);
_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux