From: Felix Domke Date: Tue, 3 Jun 2008 13:16:41 +0000 (+0000) Subject: proper showSinglePic error handling (thanks to Sat-Turner) X-Git-Tag: 2.6.0~1183 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/8541df3bd4a92d4d2c873f528ba00c59d5f2e519?ds=sidebyside proper showSinglePic error handling (thanks to Sat-Turner) --- 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);