1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00

Refine code, remove goto

This commit is contained in:
winlin 2021-02-27 17:53:59 +08:00
parent ecef3e7f0a
commit e2bf9f3623

View file

@ -572,13 +572,12 @@ srs_error_t SrsRtcPlayStream::cycle()
}
// Wait for amount of packets.
try_dump_again:
SrsRtpPacket2* pkt = NULL;
consumer->dump_packet(&pkt);
if (!pkt) {
// TODO: FIXME: We should check the quit event.
consumer->wait(mw_msgs);
goto try_dump_again;
continue;
}
// Send-out the RTP packet and do cleanup