summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-06-18 21:22:15 (GMT)
committerJasmin Jessich <jasmin@anw.at>2017-06-23 23:45:13 (GMT)
commit6335b646c51980cefdbe06db85d53cd55e228510 (patch)
tree0d3b400f8d94a3fc339af8961f3eee8bad3e741e
parent0a7561172ed2e5f19fd97610c7685fc8f7af15a6 (diff)
downloadvdr-plugin-live-feature_recimages.tar.gz
vdr-plugin-live-feature_recimages.tar.bz2
Add check for empty recFolder to ScanForRecImagesfeature_recimages
- recFolder might be empty (why, needs to be checked!) leading to pictures from "/" added as recording image.
-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]);