diff options
-rw-r--r-- | video/video_decoder.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/video/video_decoder.h b/video/video_decoder.h index 18517c9ad2..eff5a7c396 100644 --- a/video/video_decoder.h +++ b/video/video_decoder.h @@ -753,9 +753,24 @@ protected: */ const VideoTrack *findNextVideoTrack() const; + /** + * Typedef helpers for accessing tracks + */ + typedef Common::Array<Track *> TrackList; + typedef TrackList::iterator TrackListIterator; + + /** + * Get the begin iterator of the tracks + */ + TrackListIterator getTrackListBegin() { return _tracks.begin(); } + + /** + * Get the end iterator of the tracks + */ + TrackListIterator getTrackListEnd() { return _tracks.end(); } + private: // Tracks owned by this AdvancedVideoDecoder - typedef Common::Array<Track *> TrackList; TrackList _tracks; // Current playback status |