Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
e75b95ed
Commit
e75b95ed
authored
Mar 04, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SD: use playlist_Lock explicitly
parent
62f99c5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+6
-10
No files found.
src/playlist/services_discovery.c
View file @
e75b95ed
...
@@ -211,22 +211,18 @@ static void playlist_sd_item_removed( const vlc_event_t * p_event, void * user_d
...
@@ -211,22 +211,18 @@ static void playlist_sd_item_removed( const vlc_event_t * p_event, void * user_d
/* First make sure that if item is a node it will be deleted.
/* First make sure that if item is a node it will be deleted.
* XXX: Why don't we have a function to ensure that in the playlist code ? */
* XXX: Why don't we have a function to ensure that in the playlist code ? */
vlc_object_l
ock
(
p_parent
->
p_playlist
);
playlist_L
ock
(
p_parent
->
p_playlist
);
p_pl_item
=
playlist_ItemFindFromInputAndRoot
(
p_parent
->
p_playlist
,
p_pl_item
=
playlist_ItemFindFromInputAndRoot
(
p_parent
->
p_playlist
,
p_input
->
i_id
,
p_parent
,
false
);
p_input
->
i_id
,
p_parent
,
false
);
if
(
p_pl_item
&&
p_pl_item
->
i_children
>
-
1
)
if
(
p_pl_item
&&
p_pl_item
->
i_children
>
-
1
)
{
playlist_NodeDelete
(
p_parent
->
p_playlist
,
p_pl_item
,
true
,
false
);
playlist_NodeDelete
(
p_parent
->
p_playlist
,
p_pl_item
,
true
,
false
);
vlc_object_unlock
(
p_parent
->
p_playlist
);
else
return
;
}
/* Delete the non-node item normally */
/* Delete the non-node item normally */
playlist_DeleteFromInputInParent
(
p_parent
->
p_playlist
,
p_input
->
i_id
,
playlist_DeleteFromInputInParent
(
p_parent
->
p_playlist
,
p_input
->
i_id
,
p_parent
,
pl_Locked
);
p_parent
,
pl_Locked
);
vlc_object_u
nlock
(
p_parent
->
p_playlist
);
playlist_U
nlock
(
p_parent
->
p_playlist
);
}
}
int
playlist_ServicesDiscoveryAdd
(
playlist_t
*
p_playlist
,
const
char
*
psz_module
)
int
playlist_ServicesDiscoveryAdd
(
playlist_t
*
p_playlist
,
const
char
*
psz_module
)
...
...
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