Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
88857130
Commit
88857130
authored
Apr 27, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: remove unneeded containsObject calls, fix UInt underflow, fix array cleaning
parent
c1622c2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+9
-11
No files found.
modules/gui/macosx/intf.m
View file @
88857130
...
@@ -1516,21 +1516,19 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -1516,21 +1516,19 @@ static VLCMain *_o_sharedMainInstance = nil;
if
(
pos
.
f_float
>
.
05
&&
pos
.
f_float
<
.
95
&&
dur
>
180
)
{
if
(
pos
.
f_float
>
.
05
&&
pos
.
f_float
<
.
95
&&
dur
>
180
)
{
[
mutDict
setObject
:[
NSNumber
numberWithInt
:
current_pos_in_sec
]
forKey
:
url
];
[
mutDict
setObject
:[
NSNumber
numberWithInt
:
current_pos_in_sec
]
forKey
:
url
];
if
([
mediaList
containsObject
:
url
])
[
mediaList
removeObject
:
url
];
[
mediaList
removeObject
:
url
];
[
mediaList
addObject
:
url
];
[
mediaList
addObject
:
url
];
if
(
mediaList
.
count
>
30
)
{
NSUInteger
mediaListCount
=
mediaList
.
count
;
NSUInteger
count
=
mediaList
.
count
;
if
(
mediaListCount
>
30
)
{
for
(
NSUInteger
x
=
0
;
x
<
30
-
count
;
x
++
)
{
for
(
NSUInteger
x
=
0
;
x
<
mediaListCount
-
30
;
x
++
)
{
[
mutDict
removeObjectForKey
:
mediaList
[
x
]];
[
mutDict
removeObjectForKey
:
[
mediaList
objectAtIndex
:
0
]];
[
mediaList
removeObject
:
mediaList
[
x
]
];
[
mediaList
removeObject
AtIndex
:
0
];
}
}
}
}
}
else
{
}
else
{
if
([
mediaList
containsObject
:
url
])
{
[
mutDict
removeObjectForKey
:
url
];
[
mutDict
removeObjectForKey
:
url
];
[
mediaList
removeObject
:
url
];
[
mediaList
removeObject
:
url
];
}
}
}
[
defaults
setObject
:
mutDict
forKey
:
@"recentlyPlayedMedia"
];
[
defaults
setObject
:
mutDict
forKey
:
@"recentlyPlayedMedia"
];
[
defaults
setObject
:
mediaList
forKey
:
@"recentlyPlayedMediaList"
];
[
defaults
setObject
:
mediaList
forKey
:
@"recentlyPlayedMediaList"
];
...
...
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