diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-06-03 13:16:41 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-06-03 13:16:41 +0000 |
| commit | 8541df3bd4a92d4d2c873f528ba00c59d5f2e519 (patch) | |
| tree | 195772cabfe1913b8c2cb636e4662bc0de987d1a /lib/dvb/decoder.cpp | |
| parent | d128473f5c544e16442b13187cc5cf7257d46086 (diff) | |
| download | enigma2-8541df3bd4a92d4d2c873f528ba00c59d5f2e519.tar.gz enigma2-8541df3bd4a92d4d2c873f528ba00c59d5f2e519.zip | |
proper showSinglePic error handling (thanks to Sat-Turner)
Diffstat (limited to 'lib/dvb/decoder.cpp')
| -rw-r--r-- | lib/dvb/decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dvb/decoder.cpp b/lib/dvb/decoder.cpp index 72c6e392..7ad1a25d 100644 --- a/lib/dvb/decoder.cpp +++ b/lib/dvb/decoder.cpp @@ -1145,7 +1145,7 @@ RESULT eTSMPEGDecoder::showSinglePic(const char *filename) { eDebug("showSinglePic %s", filename); int f = open(filename, O_RDONLY); - if (f) + if (f >= 0) { struct stat s; fstat(f, &s); |
