Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
b35d7626
Commit
b35d7626
authored
Jun 05, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 2 runtime exceptions
(cherry picked from commit
154031c7
)
parent
e4e65c12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Sources/VLCPlaybackController.m
Sources/VLCPlaybackController.m
+3
-0
Sources/VLCPlaylistViewController.m
Sources/VLCPlaylistViewController.m
+2
-0
No files found.
Sources/VLCPlaybackController.m
View file @
b35d7626
...
...
@@ -392,6 +392,9 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
fileItem
.
lastAudioTrack
=
@
(
_mediaPlayer
.
currentAudioTrackIndex
);
fileItem
.
lastSubtitleTrack
=
@
(
_mediaPlayer
.
currentVideoSubTitleIndex
);
if
([
fileItem
isKindOfType
:
kMLFileTypeAudio
])
return
;
if
(
position
>
.
95
)
return
;
...
...
Sources/VLCPlaylistViewController.m
View file @
b35d7626
...
...
@@ -388,6 +388,8 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
NSString
*
folderLocation
=
[[
mediaObject
.
url
path
]
stringByDeletingLastPathComponent
];
NSArray
*
allfiles
=
[
fileManager
contentsOfDirectoryAtPath
:
folderLocation
error
:
nil
];
NSString
*
fileName
=
[
mediaObject
.
path
.
lastPathComponent
stringByDeletingPathExtension
];
if
(
!
fileName
)
return
;
NSIndexSet
*
indexSet
=
[
allfiles
indexesOfObjectsPassingTest
:
^
BOOL
(
id
obj
,
NSUInteger
idx
,
BOOL
*
stop
)
{
return
([
obj
rangeOfString
:
fileName
].
location
!=
NSNotFound
);
}];
...
...
Write
Preview
Markdown
is supported
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