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:12:21 (GMT)
commitcb1911aa1d647a9ddaf22338230d6421c2df6e80 (patch)
treeb13fe6dea74222864bc0f2c3a43c948c0267cd0d
parentf3e33232b4514733845dee66374de75013061867 (diff)
Bypass filesize query on recording if possible. Refs #9539
Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
-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 9de9cbd..36a5a88 100644
--- a/mythtv/programs/mythfrontend/playbackbox.cpp
+++ b/mythtv/programs/mythfrontend/playbackbox.cpp
@@ -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);
}
}