Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP: added second teardown call
  • Loading branch information
perexg committed Aug 4, 2014
1 parent 44eead0 commit 09606dd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -1232,6 +1232,25 @@ satip_frontend_input_thread ( void *aux )
}
}
}
/* for sure - the second sequence */
r = rtsp_teardown(rtsp, (char *)rtcp, NULL);
if (r < 0) {
tvhtrace("satip", "%s - bad teardown2", buf);
} else {
while (1) {
r = http_client_run(rtsp);
if (r != HTTP_CON_RECEIVING && r != HTTP_CON_SENDING)
break;
nfds = tvhpoll_wait(efd, ev, 1, 50); /* only small delay here */
if (nfds == 0)
break;
if (nfds < 0) {
if (ERRNO_AGAIN(errno))
continue;
break;
}
}
}
}

done:
Expand Down

0 comments on commit 09606dd

Please sign in to comment.