Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
3ce6fa1a
Commit
3ce6fa1a
authored
Mar 29, 2013
by
Felix Paul Kühne
Browse files
AspenProject: handle cancelled action sheets correctly
parent
75c3da60
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCMovieViewController.m
View file @
3ce6fa1a
...
...
@@ -157,16 +157,18 @@
if
(
actionSheet
==
_subtitleActionSheet
)
{
namesArray
=
_mediaPlayer
.
videoSubTitlesNames
;
arrayIndex
=
[
namesArray
indexOfObject
:[
actionSheet
buttonTitleAtIndex
:
buttonIndex
]];
indexArray
=
_mediaPlayer
.
videoSubTitlesIndexes
;
_mediaPlayer
.
currentVideoSubTitleIndex
=
[[
indexArray
objectAtIndex
:
arrayIndex
]
intValue
];
if
(
arrayIndex
!=
NSNotFound
)
{
indexArray
=
_mediaPlayer
.
videoSubTitlesIndexes
;
_mediaPlayer
.
currentVideoSubTitleIndex
=
[[
indexArray
objectAtIndex
:
arrayIndex
]
intValue
];
}
[
_subtitleActionSheet
release
];
}
else
{
namesArray
=
_mediaPlayer
.
audioTrackNames
;
arrayIndex
=
[
namesArray
indexOfObject
:[
actionSheet
buttonTitleAtIndex
:
buttonIndex
]];
i
ndexArray
=
_mediaPlayer
.
audioTrackIndexes
;
APLog
(
@"audio index to be set %i"
,
[[
indexArray
objectAtIndex
:
arrayIndex
]
intValue
])
;
_mediaPlayer
.
currentAudioTrackIndex
=
[[
indexArray
objectAtIndex
:
arrayIndex
]
intValue
];
APLog
(
@"actual audio track index: %i"
,
_mediaPlayer
.
currentAudioTrackIndex
);
i
f
(
arrayIndex
!=
NSNotFound
)
{
indexArray
=
_mediaPlayer
.
audioTrackIndexes
;
_mediaPlayer
.
currentAudioTrackIndex
=
[[
indexArray
objectAtIndex
:
arrayIndex
]
intValue
];
}
[
_audiotrackActionSheet
release
];
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment