aboutsummaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorMatthew Hoops2012-07-27 11:14:46 -0400
committerMatthew Hoops2012-07-27 11:14:46 -0400
commit21d3fa71aff686f5b64361ae3410268fc0ab5968 (patch)
tree1232ec3918e3a0eaf492bee74a046735f98af647 /video
parent90b72e31e4a9f2a23d912d31343ba25f27da7b3e (diff)
downloadscummvm-rg350-21d3fa71aff686f5b64361ae3410268fc0ab5968.tar.gz
scummvm-rg350-21d3fa71aff686f5b64361ae3410268fc0ab5968.tar.bz2
scummvm-rg350-21d3fa71aff686f5b64361ae3410268fc0ab5968.zip
VIDEO: Add functions for getting TrackList iterators internally
Diffstat (limited to 'video')
-rw-r--r--video/video_decoder.h17
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