summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Stuff <billstuff2001@sbcglobal.net>2011-07-24 10:12:21 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2011-07-24 10:26:05 (GMT)
commit90247032226cad92d613dce6fe379079a83b3779 (patch)
tree4313add5a0930c77b359ab78ae7ffb9d6a070762
parentced1c786dc58ede88851b9c5b8fe58c006805043 (diff)
Bypass filesize query on recording if possible. Refs #9539
Signed-off-by: Stuart Morgan <smorgan@mythtv.org> (cherry picked from commit cb1911aa1d647a9ddaf22338230d6421c2df6e80)
-rw-r--r--mythtv/programs/mythfrontend/playbackbox.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/mythtv/programs/mythfrontend/playbackbox.cpp b/mythtv/programs/mythfrontend/playbackbox.cpp
index b475022..83a49a4 100644
--- a/mythtv/programs/mythfrontend/playbackbox.cpp
+++ b/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);
}
}