Skip to content
Browse files

Bypass filesize query on recording if possible. Refs #9539

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
(cherry picked from commit cb1911a)
  • Loading branch information...
1 parent ced1c78 commit 90247032226cad92d613dce6fe379079a83b3779 Bill Stuff committed with stuartm Jul 24, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 mythtv/programs/mythfrontend/playbackbox.cpp
View
8 mythtv/programs/mythfrontend/playbackbox.cpp
@@ -644,9 +644,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);
}
}

0 comments on commit 9024703

Please sign in to comment.
Something went wrong with that request. Please try again.