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.
(cherry picked from commit c5803f1)
  • Loading branch information...
1 parent 016db04 commit 648f0aec326c03b39091fda8ac64450d0f0e76e3 @sphery sphery committed Jun 7, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 mythtv/programs/mythcommflag/main.cpp
@@ -627,12 +627,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 648f0ae

Please sign in to comment.