Skip to content

Commit

Permalink
Bypass filesize query on recording if possible. Refs #9539
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
  • Loading branch information
Bill Stuff authored and stuartm committed Jul 24, 2011
1 parent f3e3323 commit cb1911a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mythtv/programs/mythfrontend/playbackbox.cpp
Expand Up @@ -654,9 +654,13 @@ void PlaybackBox::updateGroupInfo(const QString &groupname,
ProgramInfo *info = *it;
if (info)
{
uint64_t filesize = info->QueryFilesize();
uint64_t filesize = info->GetFilesize();
if (filesize == 0 || info->GetRecordingStatus() == rsRecording)
{
filesize = info->QueryFilesize();
info->SetFilesize(filesize);
}
groupSize += filesize;
info->SetFilesize(filesize);
}
}

Expand Down

0 comments on commit cb1911a

Please sign in to comment.