Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
88f80ddc
Commit
88f80ddc
authored
Jun 21, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport of [11488] and [11489]
parent
84d47f6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
9 deletions
+29
-9
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+29
-9
No files found.
modules/gui/macosx/playlist.m
View file @
88f80ddc
...
...
@@ -367,18 +367,34 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
if
(
p_temp_item
)
{
int
i
;
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
/* Since outlineView: willDisplayCell:... may call this function with
p_items that don't exist anymore, first check if the item is still
in the playlist. Any cleaner solution welcomed. */
for
(
i
=
0
;
i
<
p_playlist
->
i_all_size
;
i
++
)
{
if
(
p_playlist
->
pp_all_items
[
i
]
==
p_item
)
break
;
else
if
(
i
==
p_playlist
->
i_all_size
-
1
)
{
vlc_object_release
(
p_playlist
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
return
NO
;
}
}
while
(
p_temp_item
->
i_parents
>
0
)
{
int
i
;
for
(
i
=
0
;
i
<
p_temp_item
->
i_parents
;
i
++
)
{
if
(
p_temp_item
->
pp_parents
[
i
]
->
i_view
==
i_current_view
)
{
if
(
p_temp_item
->
pp_parents
[
i
]
->
p_parent
==
p_node
)
{
vlc_object_release
(
p_playlist
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
vlc_object_release
(
p_playlist
);
return
YES
;
}
else
...
...
@@ -388,9 +404,9 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
}
}
}
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
}
vlc_object_release
(
p_playlist
);
return
NO
;
...
...
@@ -510,7 +526,6 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
playlist_item_t
*
p_item
;
o_number
=
[
o_to_delete
lastObject
];
i_row
=
[
o_number
intValue
];
[
o_to_delete
removeObject
:
o_number
];
[
o_outline_view
deselectRow
:
i_row
];
...
...
@@ -524,7 +539,9 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
// if current item is in selected node and is playing then stop playlist
playlist_Stop
(
p_playlist
);
}
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
playlist_NodeDelete
(
p_playlist
,
p_item
,
VLC_TRUE
,
VLC_FALSE
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
else
{
...
...
@@ -533,7 +550,9 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
{
playlist_Stop
(
p_playlist
);
}
playlist_LockDelete
(
p_playlist
,
p_item
->
input
.
i_id
);
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
playlist_Delete
(
p_playlist
,
p_item
->
input
.
i_id
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
}
[
self
playlistUpdated
];
...
...
@@ -906,7 +925,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
}
if
(
o_result
!=
NULL
)
{
for
(
i
=
0
;
i
<
[
o_result
count
]
-
1
;
i
++
)
for
(
i
=
1
;
i
<
[
o_result
count
]
-
1
;
i
++
)
{
[
o_outline_view
expandItem
:
[
o_outline_dict
objectForKey
:
[
NSString
stringWithFormat
:
@"%p"
,
...
...
@@ -1033,10 +1052,11 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
{
playlist_t
*
p_playlist
=
vlc_object_find
(
VLCIntf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
playlist_item_t
*
p_item
=
(
playlist_item_t
*
)[
item
pointerValue
]
;
playlist_item_t
*
p_item
;
if
(
!
p_playlist
)
return
;
p_item
=
(
playlist_item_t
*
)[
item
pointerValue
];
if
(
(
p_item
==
p_playlist
->
status
.
p_item
)
||
(
p_item
->
i_children
!=
0
&&
[
self
isItem
:
p_playlist
->
status
.
p_item
inNode
:
p_item
]
)
)
...
...
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