summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);