Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
iptv: http_client_simple_reconnect() must be protected by the mutex l…
…ock, fixes #4119
  • Loading branch information
perexg committed Dec 7, 2016
1 parent b166c50 commit aeceb4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/input/mpegts/iptv/iptv_http.c
Expand Up @@ -361,8 +361,10 @@ iptv_http_reconnect ( http_client_t *hc, const char *url )

urlinit(&u);
if (!urlparse(url, &u)) {
pthread_mutex_lock(&hc->hc_mutex);
hc->hc_keepalive = 0;
r = http_client_simple_reconnect(hc, &u, HTTP_VERSION_1_1);
pthread_mutex_unlock(&hc->hc_mutex);
if (r < 0)
tvherror(LS_IPTV, "cannot reopen http client: %d'", r);
} else {
Expand Down

0 comments on commit aeceb4a

Please sign in to comment.