playbackcache: more intelligent job matching
Ensures audio ranges can be anticipated and accurately ignored if they're old or acknowledged if they're current.
This commit is contained in:
@@ -84,10 +84,6 @@ protected:
|
||||
|
||||
void NoLockValidate(const TimeRange& r);
|
||||
|
||||
void NoLockSetLength(const rational& r);
|
||||
|
||||
bool JobIsCurrent(const TimeRange& r, qint64 job_time);
|
||||
|
||||
const rational& NoLockGetLength() const
|
||||
{
|
||||
return length_;
|
||||
@@ -109,13 +105,6 @@ protected:
|
||||
return &lock_;
|
||||
}
|
||||
|
||||
private:
|
||||
void RemoveRangeFromJobs(const TimeRange& remove);
|
||||
|
||||
QMutex lock_;
|
||||
|
||||
TimeRangeList invalidated_;
|
||||
|
||||
struct JobIdentifier {
|
||||
TimeRange range;
|
||||
qint64 job_time;
|
||||
@@ -123,6 +112,13 @@ private:
|
||||
|
||||
QList<JobIdentifier> jobs_;
|
||||
|
||||
private:
|
||||
void RemoveRangeFromJobs(const TimeRange& remove);
|
||||
|
||||
QMutex lock_;
|
||||
|
||||
TimeRangeList invalidated_;
|
||||
|
||||
rational length_;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user