Fix the RTSP payload timeout being too aggressive

This commit is contained in:
Cameron Gutman 2016-03-08 13:13:25 -08:00
parent 5a92f72012
commit 04b00f9e8a

View File

@ -161,9 +161,8 @@ static int transactRtspMessageEnet(PRTSP_MESSAGE request, PRTSP_MESSAGE response
// Wait for the payload if we're expecting some
if (expectingPayload) {
// Only wait 1 second since the packets should be here immediately
// after the header.
if (enet_host_service(client, &event, 1000) <= 0 ||
// The payload comes in a second packet
if (enet_host_service(client, &event, RTSP_TIMEOUT_SEC * 1000) <= 0 ||
event.type != ENET_EVENT_TYPE_RECEIVE) {
Limelog("Failed to receive RTSP reply payload\n");
ret = 0;