MediaClient: Use CurrentTime for both offline and performance time
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user