made some CuePoint member variables private

Change-Id: Ia33b6d8293f4892c15f11fca1035dd55a66f758c
This commit is contained in:
matthewjheaney
2010-09-23 13:04:39 -04:00
parent 5942555352
commit 3edd0129cb
2 changed files with 12 additions and 11 deletions

View File

@@ -1863,6 +1863,11 @@ const CuePoint::TrackPosition* CuePoint::Find(const Track* pTrack) const
} }
long long CuePoint::GetTimeCode() const
{
return m_timecode;
}
long long CuePoint::GetTime(Segment* pSegment) const long long CuePoint::GetTime(Segment* pSegment) const
{ {
assert(pSegment); assert(pSegment);
@@ -3502,15 +3507,8 @@ Cluster::GetEntry(
const BlockEntry* const pEntry = m_pEntries[index]; const BlockEntry* const pEntry = m_pEntries[index];
assert(pEntry); assert(pEntry);
assert(!pEntry->EOS()); assert(!pEntry->EOS());
assert(pEntry->GetBlock()->GetTrackNumber() == tp.m_track);
const Block* const pBlock = pEntry->GetBlock(); assert(pEntry->GetBlock()->GetTimeCode(this) == cp.GetTimeCode());
pBlock;
assert(pBlock);
assert(pBlock->GetTrackNumber() == tp.m_track);
const long long timecode = pBlock->GetTimeCode(this);
timecode;
assert(timecode == cp.m_timecode);
return pEntry; return pEntry;
} }

View File

@@ -342,7 +342,7 @@ public:
void Parse(IMkvReader*, long long start, long long size); void Parse(IMkvReader*, long long start, long long size);
long long m_timecode; //absolute but unscaled long long GetTimeCode() const; //absolute but unscaled
long long GetTime(Segment*) const; //absolute and scaled (ns units) long long GetTime(Segment*) const; //absolute and scaled (ns units)
struct TrackPosition struct TrackPosition
@@ -357,10 +357,13 @@ public:
void Parse(IMkvReader*, long long, long long); void Parse(IMkvReader*, long long, long long);
}; };
const TrackPosition* Find(const Track*) const;
private:
long long m_timecode;
TrackPosition* m_track_positions; TrackPosition* m_track_positions;
size_t m_track_positions_count; size_t m_track_positions_count;
const TrackPosition* Find(const Track*) const;
}; };