Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
IPTV RTSP: fix periodic options call (full URL + timeout) for another…
… IPTV source
  • Loading branch information
perexg committed May 16, 2015
1 parent 61309d2 commit e3d7e3c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/input/mpegts/iptv/iptv_rtsp.c
Expand Up @@ -48,8 +48,9 @@ iptv_rtsp_alive_cb ( void *aux )
iptv_mux_t *im = aux;
rtsp_priv_t *rp = im->im_data;

rtsp_options(rp->hc);
gtimer_arm(&rp->alive_timer, iptv_rtsp_alive_cb, im, rp->hc->hc_rtp_timeout / 2);
rtsp_send(rp->hc, RTSP_CMD_OPTIONS, rp->path, rp->query, NULL);
gtimer_arm(&rp->alive_timer, iptv_rtsp_alive_cb, im,
MAX(1, (rp->hc->hc_rtp_timeout / 2) - 1));
}

/*
Expand Down Expand Up @@ -91,7 +92,8 @@ iptv_rtsp_header ( http_client_t *hc )
hc->hc_cmd = HTTP_CMD_NONE;
pthread_mutex_lock(&global_lock);
iptv_input_mux_started(hc->hc_aux);
gtimer_arm(&rp->alive_timer, iptv_rtsp_alive_cb, im, hc->hc_rtp_timeout / 2);
gtimer_arm(&rp->alive_timer, iptv_rtsp_alive_cb, im,
MAX(1, (hc->hc_rtp_timeout / 2) - 1));
pthread_mutex_unlock(&global_lock);
break;
default:
Expand Down

0 comments on commit e3d7e3c

Please sign in to comment.