mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine code, remove goto
This commit is contained in:
parent
ecef3e7f0a
commit
e2bf9f3623
1 changed files with 1 additions and 2 deletions
|
@ -572,13 +572,12 @@ srs_error_t SrsRtcPlayStream::cycle()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait for amount of packets.
|
// Wait for amount of packets.
|
||||||
try_dump_again:
|
|
||||||
SrsRtpPacket2* pkt = NULL;
|
SrsRtpPacket2* pkt = NULL;
|
||||||
consumer->dump_packet(&pkt);
|
consumer->dump_packet(&pkt);
|
||||||
if (!pkt) {
|
if (!pkt) {
|
||||||
// TODO: FIXME: We should check the quit event.
|
// TODO: FIXME: We should check the quit event.
|
||||||
consumer->wait(mw_msgs);
|
consumer->wait(mw_msgs);
|
||||||
goto try_dump_again;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send-out the RTP packet and do cleanup
|
// Send-out the RTP packet and do cleanup
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue