Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
iptv: fix iptv_lock mutex deadlock for http client, fixes #2465
  • Loading branch information
perexg committed Nov 11, 2014
1 parent 3cc291c commit 6c6c69d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/input/mpegts/iptv/iptv_http.c
Expand Up @@ -92,7 +92,9 @@ static void
iptv_http_stop
( iptv_mux_t *im )
{
pthread_mutex_unlock(&iptv_lock);
http_client_close(im->im_data);
pthread_mutex_lock(&iptv_lock);
}


Expand Down
2 changes: 2 additions & 0 deletions src/input/mpegts/iptv/iptv_udp.c
Expand Up @@ -66,8 +66,10 @@ iptv_udp_stop
udp_multirecv_t *um = im->im_data;

im->im_data = NULL;
pthread_mutex_unlock(&iptv_lock);
udp_multirecv_free(um);
free(um);
pthread_mutex_lock(&iptv_lock);
}

static ssize_t
Expand Down

0 comments on commit 6c6c69d

Please sign in to comment.