Commit ae4f748f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Pierre writes too good code. We need to kludge it :(

parent a09bcae3
......@@ -543,7 +543,7 @@ static void Run( services_discovery_t *p_sd )
}
/* read SAP packets */
while( !p_sd->b_die )
while( vlc_object_alive( p_sd ) )
{
unsigned n = p_sd->p_sys->i_fd;
struct pollfd ufd[n];
......@@ -555,6 +555,11 @@ static void Run( services_discovery_t *p_sd )
ufd[i].revents = 0;
}
/* FIXME: remove this stupid evil hack when we have sorted out how to
* to cancel threads while doing network I/O */
if (timeout > 2000)
timeout = 2000;
if (poll (ufd, n, timeout) > 0)
{
for (unsigned i = 0; i < n; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment