#! /bin/sh /usr/share/dpatch/dpatch-run ## mp3-kUp-fix - by Thomas Günther ## http://toms-cafe.de/vdr/download/vdrcd-0.0.10.1-mp3-kUp-fix.diff ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fixes searching the cdrom entry in mp3 mode. This problem only occured ## DP: if an entry below the cdrom entry were selected. @DPATCH@ --- vdrcd-0.0.10.1/vdrcd.c +++ vdrcd-0.0.10.1/vdrcd.c @@ -374,6 +374,14 @@ // Now switch into "source" mode osd->ProcessKey(kGreen); + // Move to first entry + const char *actual = status->Current(); + osd->ProcessKey(kUp); + while (actual != status->Current()) { + osd->ProcessKey(kUp); + actual = status->Current(); + } + const char *last = NULL; while (last != status->Current()) { if (strcmp(status->Current() + strlen(status->Current())