summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-12-20 16:54:11 +0100
committerlouis <louis.braun@gmx.de>2013-12-20 16:54:11 +0100
commit3c20b53142da329465aa783976ebcf6a9dcd29cc (patch)
treea0764755bed47f9c168a1a9513adc070ed917633
parent55a85eeb631da6d565fb624dd679912568eeba5c (diff)
downloadskin-nopacity-3c20b53142da329465aa783976ebcf6a9dcd29cc.tar.gz
skin-nopacity-3c20b53142da329465aa783976ebcf6a9dcd29cc.tar.bz2
Fixed a possible crash if recording directory is no longer available
-rw-r--r--HISTORY7
-rw-r--r--imageloader.c4
-rw-r--r--skinnopacity.c2
3 files changed, 11 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index bcde5d4..a0f8330 100644
--- a/HISTORY
+++ b/HISTORY
@@ -390,3 +390,10 @@ Version 1.0.1
- added more Exception Handling for Image Loading
- fixed a crash for recordings without valid title in info file
- darkened borders of menubuttons and scrollbar in theme darkredNG
+
+Version 1.0.2
+
+- Extended image loading logging only if activated in setup
+- Fixed a possible crash if recording directory is no longer available
+
+Version 1.0.3
diff --git a/imageloader.c b/imageloader.c
index 047502b..1ab4a1b 100644
--- a/imageloader.c
+++ b/imageloader.c
@@ -147,9 +147,11 @@ bool cImageLoader::SearchRecordingPoster(cString recPath, cString &found) {
}
bool cImageLoader::FirstImageInFolder(cString Path, cString Extension, cString *recImage) {
- DIR *folder;
+ DIR *folder = NULL;
struct dirent *file;
folder = opendir(Path);
+ if (!folder)
+ return false;
while (file = readdir(folder)) {
if (endswith(file->d_name, *Extension)) {
std::string fileName = file->d_name;
diff --git a/skinnopacity.c b/skinnopacity.c
index 2d11168..07f4f67 100644
--- a/skinnopacity.c
+++ b/skinnopacity.c
@@ -19,7 +19,7 @@
#endif
-static const char *VERSION = "1.0.2";
+static const char *VERSION = "1.0.3";
static const char *DESCRIPTION = "'nOpacity' Skin";
static const char *MAINMENUENTRY = "nOpacity";