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
74db29fd
Commit
74db29fd
authored
Jan 10, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Playlist: detach from SD events _after_ stopping the plugin
parent
6914f254
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+11
-6
No files found.
src/playlist/services_discovery.c
View file @
74db29fd
...
...
@@ -336,28 +336,33 @@ int playlist_ServicesDiscoveryRemove( playlist_t * p_playlist,
}
PL_UNLOCK
;
if
(
!
p_sds
||
!
p_sds
->
p_sd
)
if
(
!
p_sds
)
{
msg_Warn
(
p_playlist
,
"module %s is not loaded"
,
psz_module
);
return
VLC_EGENERIC
;
}
vlc_event_detach
(
services_discovery_EventManager
(
p_sds
->
p_sd
),
services_discovery_t
*
p_sd
=
p_sds
->
p_sd
;
assert
(
p_sd
);
vlc_sd_Stop
(
p_sd
);
vlc_event_detach
(
services_discovery_EventManager
(
p_sd
),
vlc_ServicesDiscoveryItemAdded
,
playlist_sd_item_added
,
p_sds
->
p_one
);
vlc_event_detach
(
services_discovery_EventManager
(
p_sd
s
->
p_sd
),
vlc_event_detach
(
services_discovery_EventManager
(
p_sd
),
vlc_ServicesDiscoveryItemAdded
,
playlist_sd_item_added
,
p_sds
->
p_cat
);
vlc_event_detach
(
services_discovery_EventManager
(
p_sd
s
->
p_sd
),
vlc_event_detach
(
services_discovery_EventManager
(
p_sd
),
vlc_ServicesDiscoveryItemRemoved
,
playlist_sd_item_removed
,
p_sds
->
p_one
);
vlc_event_detach
(
services_discovery_EventManager
(
p_sd
s
->
p_sd
),
vlc_event_detach
(
services_discovery_EventManager
(
p_sd
),
vlc_ServicesDiscoveryItemRemoved
,
playlist_sd_item_removed
,
p_sds
->
p_cat
);
...
...
@@ -372,7 +377,7 @@ int playlist_ServicesDiscoveryRemove( playlist_t * p_playlist,
}
PL_UNLOCK
;
vlc_sd_
StopAndDestroy
(
p_sds
->
p_sd
);
vlc_sd_
Destroy
(
p_sd
);
free
(
p_sds
);
return
VLC_SUCCESS
;
...
...
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