MediaClient: Use CurrentTime for both offline and performance time

This commit is contained in:
Dario Casalinuovo
2016-11-25 17:38:44 +01:00
parent 6d0255216e
commit 9e9655ed55
2 changed files with 6 additions and 18 deletions
+4 -7
View File
@@ -154,11 +154,9 @@ public:
void GetLatencyRange(bigtime_t* min,
bigtime_t* max) const;
// When in B_OFFLINE it returns OfflineTime().
bigtime_t OfflineTime() const;
// Return the current performance time handled by the object
// when run_mode != B_OFFLINE.
bigtime_t PerformanceTime() const;
// Return the current performance time handled by the object when
// run_mode != B_OFFLINE. Otherwise returns the current offline time.
bigtime_t CurrentTime() const;
// This is supplied to support using this class in a BMediaAddOn.
// Default version just return NULL.
@@ -210,8 +208,7 @@ private:
bool fRunning;
BMediaClientNode* fNode;
bigtime_t fPerformanceTime;
bigtime_t fOfflineTime;
bigtime_t fCurrentTime;
bigtime_t fMinLatency;
bigtime_t fMaxLatency;
+2 -11
View File
@@ -442,20 +442,11 @@ BMediaClient::SetLatencyRange(bigtime_t min, bigtime_t max)
bigtime_t
BMediaClient::OfflineTime() const
BMediaClient::CurrentTime() const
{
CALLED();
return fOfflineTime;
}
bigtime_t
BMediaClient::PerformanceTime() const
{
CALLED();
return fPerformanceTime;
return fCurrentTime;
}