From c5803f1dc6b1da7d77222c43ce074bb04d9bc983 Mon Sep 17 00:00:00 2001 From: "Michael T. Dean" Date: Thu, 7 Jun 2012 00:17:48 -0400 Subject: [PATCH] Fix exists check in mythcommflag for files that aren't visible to the master backend. Thanks to fedora a ready2think for the patch. Fixes #10810. --- mythtv/programs/mythcommflag/main.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mythtv/programs/mythcommflag/main.cpp b/mythtv/programs/mythcommflag/main.cpp index ff458bc2c89..dbd9a57bb05 100644 --- a/mythtv/programs/mythcommflag/main.cpp +++ b/mythtv/programs/mythcommflag/main.cpp @@ -628,12 +628,7 @@ static qint64 GetFileSize(ProgramInfo *program_info) if (filename.startsWith("myth://")) { RemoteFile remotefile(filename, false, false, 0); - struct stat filestat; - - if (remotefile.Exists(filename, &filestat)) - { - size = filestat.st_size; - } + size = remotefile.GetFileSize(); } else {