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
0a74125c
Commit
0a74125c
authored
Oct 11, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services_discovery: fix removal of nodes
parent
6f17ad3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+6
-6
No files found.
src/playlist/services_discovery.c
View file @
0a74125c
...
@@ -225,12 +225,12 @@ static void playlist_sd_item_removed( const vlc_event_t * p_event, void * user_d
...
@@ -225,12 +225,12 @@ static void playlist_sd_item_removed( const vlc_event_t * p_event, void * user_d
input_item_t
*
p_input
=
p_event
->
u
.
services_discovery_item_removed
.
p_item
;
input_item_t
*
p_input
=
p_event
->
u
.
services_discovery_item_removed
.
p_item
;
playlist_item_t
*
p_parent
=
user_data
;
playlist_item_t
*
p_parent
=
user_data
;
playlist_item_t
*
p_pl_item
;
playlist_item_t
*
p_pl_item
;
/* 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_lock
(
p_parent
->
p_playlist
);
vlc_object_lock
(
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
,
VLC_
TRU
E
);
p_input
->
i_id
,
p_parent
,
VLC_
FALS
E
);
if
(
p_pl_item
&&
p_pl_item
->
i_children
>
-
1
)
if
(
p_pl_item
&&
p_pl_item
->
i_children
>
-
1
)
{
{
...
@@ -317,16 +317,16 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modu
...
@@ -317,16 +317,16 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modu
services_discovery_Start
(
p_sd
);
services_discovery_Start
(
p_sd
);
/* Free in playlist_ServicesDiscoveryRemove */
/* Free in playlist_ServicesDiscoveryRemove */
p_sds
=
malloc
(
sizeof
(
struct
playlist_services_discovery_support_t
)
);
p_sds
=
malloc
(
sizeof
(
struct
playlist_services_discovery_support_t
)
);
if
(
!
p_sds
)
if
(
!
p_sds
)
{
{
msg_Err
(
p_playlist
,
"No more memory"
);
msg_Err
(
p_playlist
,
"No more memory"
);
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
}
}
p_sds
->
p_sd
=
p_sd
;
p_sds
->
p_sd
=
p_sd
;
p_sds
->
p_one
=
p_one
;
p_sds
->
p_one
=
p_one
;
p_sds
->
p_cat
=
p_cat
;
p_sds
->
p_cat
=
p_cat
;
PL_LOCK
;
PL_LOCK
;
TAB_APPEND
(
p_playlist
->
i_sds
,
p_playlist
->
pp_sds
,
p_sds
);
TAB_APPEND
(
p_playlist
->
i_sds
,
p_playlist
->
pp_sds
,
p_sds
);
...
...
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