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, void GetLatencyRange(bigtime_t* min,
bigtime_t* max) const; bigtime_t* max) const;
// When in B_OFFLINE it returns OfflineTime(). // Return the current performance time handled by the object when
bigtime_t OfflineTime() const; // run_mode != B_OFFLINE. Otherwise returns the current offline time.
// Return the current performance time handled by the object bigtime_t CurrentTime() const;
// when run_mode != B_OFFLINE.
bigtime_t PerformanceTime() const;
// This is supplied to support using this class in a BMediaAddOn. // This is supplied to support using this class in a BMediaAddOn.
// Default version just return NULL. // Default version just return NULL.
@@ -210,8 +208,7 @@ private:
bool fRunning; bool fRunning;
BMediaClientNode* fNode; BMediaClientNode* fNode;
bigtime_t fPerformanceTime; bigtime_t fCurrentTime;
bigtime_t fOfflineTime;
bigtime_t fMinLatency; bigtime_t fMinLatency;
bigtime_t fMaxLatency; bigtime_t fMaxLatency;
+2 -11
View File
@@ -442,20 +442,11 @@ BMediaClient::SetLatencyRange(bigtime_t min, bigtime_t max)
bigtime_t bigtime_t
BMediaClient::OfflineTime() const BMediaClient::CurrentTime() const
{ {
CALLED(); CALLED();
return fOfflineTime; return fCurrentTime;
}
bigtime_t
BMediaClient::PerformanceTime() const
{
CALLED();
return fPerformanceTime;
} }