diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-11-19 11:33:15 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-11-19 11:33:15 -0300 |
commit | e709468bb13e795cff72b3e87198c61c5b1a2ee7 (patch) | |
tree | 11d4a855259498bdaf10719199b506034a802536 /drivers/theoraplayer/src | |
parent | d5cb758d36035fc35e960a466d0b370ff19e4f76 (diff) |
missing navmesh demo and small fixes
Diffstat (limited to 'drivers/theoraplayer/src')
-rw-r--r-- | drivers/theoraplayer/src/AVFoundation/TheoraVideoClip_AVFoundation.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/theoraplayer/src/AVFoundation/TheoraVideoClip_AVFoundation.mm b/drivers/theoraplayer/src/AVFoundation/TheoraVideoClip_AVFoundation.mm index 72e3dfc9fa..1b5cf0ab13 100644 --- a/drivers/theoraplayer/src/AVFoundation/TheoraVideoClip_AVFoundation.mm +++ b/drivers/theoraplayer/src/AVFoundation/TheoraVideoClip_AVFoundation.mm @@ -271,6 +271,8 @@ void TheoraVideoClip_AVFoundation::load(TheoraDataSource* source) AVAssetTrack *videoTrack = [tracks objectAtIndex:0]; NSArray* audioTracks = [asset tracksWithMediaType:AVMediaTypeAudio]; + if (audio_track >= audioTracks.count) + audio_track = 0; AVAssetTrack *audioTrack = audioTracks.count > 0 ? [audioTracks objectAtIndex:audio_track] : NULL; printf("*********** using audio track %i\n", audio_track); |