libwebm: added Cues::GetCount

Change-Id: I5b2bca8fd7229318783d9b97c50a4e20ce2ba640
This commit is contained in:
matthewjheaney 2011-02-26 11:50:23 -05:00
parent b0465e167e
commit cf36dc2848
2 changed files with 11 additions and 0 deletions

View File

@ -2445,6 +2445,16 @@ Cues::~Cues()
delete[] m_cue_points; delete[] m_cue_points;
} }
long Cues::GetCount() const
{
if (m_cue_points == NULL)
return -1;
return m_count; //TODO: really ignore preload count?
}
void Cues::Init() const void Cues::Init() const
{ {
if (m_cue_points) if (m_cue_points)

View File

@ -519,6 +519,7 @@ public:
const CuePoint::TrackPosition*) const; const CuePoint::TrackPosition*) const;
bool LoadCuePoint() const; bool LoadCuePoint() const;
long GetCount() const;
private: private:
void Init() const; void Init() const;