Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7c9a664e
Commit
7c9a664e
authored
Sep 13, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always send the SD events
parent
3c56e7ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+10
-12
No files found.
src/playlist/services_discovery.c
View file @
7c9a664e
...
...
@@ -109,6 +109,11 @@ void services_discovery_Destroy ( services_discovery_t * p_sd )
***********************************************************************/
int
services_discovery_Start
(
services_discovery_t
*
p_sd
)
{
vlc_event_t
event
=
{
.
type
=
vlc_ServicesDiscoveryStarted
};
vlc_event_send
(
&
p_sd
->
event_manager
,
&
event
);
if
((
p_sd
->
pf_run
!=
NULL
)
&&
vlc_thread_create
(
p_sd
,
"services_discovery"
,
RunSD
,
VLC_THREAD_PRIORITY_LOW
,
false
))
...
...
@@ -137,9 +142,14 @@ static void ObjectKillChildrens( vlc_object_t *p_obj )
void
services_discovery_Stop
(
services_discovery_t
*
p_sd
)
{
vlc_event_t
event
=
{
.
type
=
vlc_ServicesDiscoveryEnded
};
ObjectKillChildrens
(
VLC_OBJECT
(
p_sd
)
);
if
(
p_sd
->
pf_run
)
vlc_thread_join
(
p_sd
);
vlc_event_send
(
&
p_sd
->
event_manager
,
&
event
);
module_Unneed
(
p_sd
,
p_sd
->
p_module
);
}
...
...
@@ -205,19 +215,7 @@ services_discovery_RemoveItem ( services_discovery_t * p_sd, input_item_t * p_it
static
void
*
RunSD
(
vlc_object_t
*
p_this
)
{
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
vlc_event_t
event
=
{
.
type
=
vlc_ServicesDiscoveryStarted
};
int
canc
=
vlc_savecancel
();
vlc_event_send
(
&
p_sd
->
event_manager
,
&
event
);
vlc_restorecancel
(
canc
);
p_sd
->
pf_run
(
p_sd
);
canc
=
vlc_savecancel
();
event
.
type
=
vlc_ServicesDiscoveryEnded
;
vlc_event_send
(
&
p_sd
->
event_manager
,
&
event
);
vlc_restorecancel
(
canc
);
return
NULL
;
}
...
...
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