summaryrefslogtreecommitdiff
path: root/epg_events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'epg_events.cpp')
-rw-r--r--epg_events.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/epg_events.cpp b/epg_events.cpp
index 6592a27..641bb65 100644
--- a/epg_events.cpp
+++ b/epg_events.cpp
@@ -361,6 +361,11 @@ namespace vdrlive
const string filetypes[] = {"png", "jpg", "PNG", "JPG"};
int size = sizeof(filetypes)/sizeof(filetypes[0]);
+ if (recfolder.empty()) {
+ // dsyslog( "LIVE: ScanForRecImages: recFolder empty for %s", imageId.c_str());
+ return found;
+ }
+
for (int j = 0;j < size;j++)
{
const string filemask(recfolder + "/*." + filetypes[j]);