aboutsummaryrefslogtreecommitdiffstats
path: root/UI/ViperGui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'UI/ViperGui.cpp')
-rw-r--r--UI/ViperGui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/UI/ViperGui.cpp b/UI/ViperGui.cpp
index 99d2e5a3..e23bd308 100644
--- a/UI/ViperGui.cpp
+++ b/UI/ViperGui.cpp
@@ -192,7 +192,7 @@ void ViperGui::writeData(libdash::framework::input::MediaObject* media)
this->segment = this->segment + 1;
if( this->segment > 0)
{
- this->bufferDuration += media->GetSegmentDuration();
+ this->bufferDuration += this->segmentDuration;
if(this->bufferDuration - this->position > 3000)
{
@@ -206,7 +206,7 @@ void ViperGui::writeData(libdash::framework::input::MediaObject* media)
}
else
{
- this->bufferDuration += (this->durationMilliseconds - (media->GetSegmentDuration() * (this->listSegmentSize - 1)));
+ this->bufferDuration += (this->durationMilliseconds - (this->segmentDuration * (this->listSegmentSize - 1)));
if(this->bufferDuration - this->position >3000)
{