Permalink
Browse files

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.
  • Loading branch information...
1 parent 1ff0145 commit c5803f1dc6b1da7d77222c43ce074bb04d9bc983 @sphery sphery committed Jun 7, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 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
{

0 comments on commit c5803f1

Please sign in to comment.