Check stat for a proper return value. If it failes return zero length for

From: Erik Hovland <erik@hovland.org>

file to check.
---

 libs/libmyth/util.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libs/libmyth/util.cpp b/libs/libmyth/util.cpp
index 97c289a..13396d5 100644
--- a/libs/libmyth/util.cpp
+++ b/libs/libmyth/util.cpp
@@ -946,7 +946,9 @@ unsigned long long myth_get_approximate_large_file_size(const QString &fname)
     return status.st_size;
 #else
     struct stat status;
-    stat(filename.local8Bit(), &status);
+    if (stat(filename.local8Bit(), &status) == -1)
+        return 0;
+
     // Using off_t requires a lot of 32/64 bit checking.
     // So just get the size in blocks.
     unsigned long long bsize = status.st_blksize;
