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
c6d9fff0
Commit
c6d9fff0
authored
Aug 28, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SD: pull down cancellation safety on those SD with lame threads
parent
76f2181d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
modules/services_discovery/hal.c
modules/services_discovery/hal.c
+5
-0
modules/services_discovery/podcast.c
modules/services_discovery/podcast.c
+7
-4
modules/services_discovery/shout.c
modules/services_discovery/shout.c
+2
-0
No files found.
modules/services_discovery/hal.c
View file @
c6d9fff0
...
...
@@ -300,6 +300,7 @@ static void Run( services_discovery_t *p_sd )
int
i
,
i_devices
;
char
**
devices
;
services_discovery_sys_t
*
p_sys
=
p_sd
->
p_sys
;
int
canc
=
vlc_savecancel
();
/* parse existing devices first */
if
(
(
devices
=
libhal_get_all_devices
(
p_sys
->
p_ctx
,
&
i_devices
,
NULL
)
)
)
...
...
@@ -310,12 +311,16 @@ static void Run( services_discovery_t *p_sd )
libhal_free_string
(
devices
[
i
]
);
}
}
/* FIXME: Totally lame. There are DBus watch functions to do this properly.
* -- Courmisch, 28/08/2008 */
while
(
vlc_object_alive
(
p_sd
)
)
{
/* look for events on the bus, blocking 1 second */
dbus_connection_read_write_dispatch
(
p_sys
->
p_connection
,
1000
);
/* HAL 0.5.8.1 can use libhal_ctx_get_dbus_connection(p_sys->p_ctx) */
}
vlc_restorecancel
(
canc
);
}
void
DeviceAdded
(
LibHalContext
*
p_ctx
,
const
char
*
psz_udi
)
...
...
modules/services_discovery/podcast.c
View file @
c6d9fff0
...
...
@@ -159,9 +159,12 @@ static void Run( services_discovery_t *p_sd )
var_Create
(
p_sd
,
"podcast-urls"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_AddCallback
(
p_sd
,
"podcast-urls"
,
UrlsChange
,
p_sys
);
while
(
vlc_object_alive
(
p_sd
)
)
for
(
;;
)
{
int
i
;
/* FIXME: That's 2000 wake up per seconds too many. */
msleep
(
500
);
int
canc
=
vlc_savecancel
();
/* <- FIXME: should not be needed */
if
(
p_sys
->
b_update
==
true
)
{
msg_Dbg
(
p_sd
,
"Update required"
);
...
...
@@ -172,7 +175,7 @@ static void Run( services_discovery_t *p_sd )
p_sys
->
b_update
=
false
;
}
for
(
i
=
0
;
i
<
p_sd
->
p_sys
->
i_input
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
p_sd
->
p_sys
->
i_input
;
i
++
)
{
if
(
p_sd
->
p_sys
->
pp_input
[
i
]
->
b_eof
||
p_sd
->
p_sys
->
pp_input
[
i
]
->
b_error
)
...
...
@@ -184,7 +187,7 @@ static void Run( services_discovery_t *p_sd )
i
--
;
}
}
msleep
(
500
);
vlc_restorecancel
(
canc
);
}
}
...
...
modules/services_discovery/shout.c
View file @
c6d9fff0
...
...
@@ -215,6 +215,7 @@ static void Run( services_discovery_t *p_sd )
{
enum
type_e
i_type
=
(
enum
type_e
)
p_sd
->
p_sys
;
int
i
,
j
;
int
canc
=
vlc_savecancel
();
if
(
!
p_items
[
i_type
].
p_children
)
{
...
...
@@ -238,6 +239,7 @@ static void Run( services_discovery_t *p_sd )
vlc_gc_decref
(
p_input
);
}
}
vlc_restorecancel
(
canc
);
}
/*****************************************************************************
...
...
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