summaryrefslogtreecommitdiff
path: root/lib/dvb/decoder.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-06-03 13:16:41 (GMT)
committerFelix Domke <tmbinc@elitedvb.net>2008-06-03 13:16:41 (GMT)
commit8541df3bd4a92d4d2c873f528ba00c59d5f2e519 (patch)
tree195772cabfe1913b8c2cb636e4662bc0de987d1a /lib/dvb/decoder.cpp
parentd128473f5c544e16442b13187cc5cf7257d46086 (diff)
proper showSinglePic error handling (thanks to Sat-Turner)
Diffstat (limited to 'lib/dvb/decoder.cpp')
-rw-r--r--lib/dvb/decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dvb/decoder.cpp b/lib/dvb/decoder.cpp
index 72c6e39..7ad1a25 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);