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
eba7ee48
Commit
eba7ee48
authored
Apr 13, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: work-around a deprecated method and ask the playlist properly for its size
parent
afead23d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+8
-8
No files found.
modules/gui/macosx/intf.m
View file @
eba7ee48
...
...
@@ -1574,10 +1574,12 @@ static void manage_cleanup( void * args )
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
/* TODO: fix i_size use */
b_plmul
=
p_playlist
->
items
.
i_size
>
1
;
PL_LOCK
;
b_plmul
=
playlist_CurrentSize
(
p_playlist
)
>
1
;
PL_UNLOCK
;
p_input
=
playlist_CurrentInput
(
p_playlist
);
bool
b_buffering
=
NO
;
if
(
(
b_input
=
(
p_input
!=
NULL
)
)
)
...
...
@@ -2500,12 +2502,10 @@ end:
[
o_msg_lock
lock
];
if
(
[
o_msg_arr
count
]
+
2
>
4
00
)
if
(
[
o_msg_arr
count
]
+
2
>
6
00
)
{
NSUInteger
rid
[]
=
{
0
,
1
};
/* FIXME: THIS METHOD WILL BE DEPRECATED */
[
o_msg_arr
removeObjectsFromIndices
:
(
NSUInteger
*
)
&
rid
numIndices:
sizeof
(
rid
)
/
sizeof
(
rid
[
0
])];
[
o_msg_arr
removeObjectAtIndex
:
0
];
[
o_msg_arr
removeObjectAtIndex
:
1
];
}
o_attr
=
[
NSDictionary
dictionaryWithObject
:
o_gray
...
...
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