Skip to content

Commit

Permalink
Fix exists check in mythcommflag
Browse files Browse the repository at this point in the history
for files that aren't visible to the master backend.  Thanks to fedora a
ready2think for the patch.  Fixes #10810.
  • Loading branch information
sphery committed Jun 7, 2012
1 parent 1ff0145 commit c5803f1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mythtv/programs/mythcommflag/main.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit c5803f1

Please sign in to comment.