mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug #217, add reuse conn to play different player.
This commit is contained in:
parent
3e81e6e0f1
commit
3d97048c3a
9 changed files with 209 additions and 1 deletions
|
@ -514,6 +514,11 @@ int SrsRtmpConn::playing(SrsSource* source)
|
|||
// stop isolate recv thread
|
||||
trd.stop();
|
||||
|
||||
// warn for the message is dropped.
|
||||
if (!trd.empty()) {
|
||||
srs_warn("drop the received %d messages", trd.size());
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -549,7 +554,7 @@ int SrsRtmpConn::do_playing(SrsSource* source, SrsRecvThread* trd)
|
|||
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/217
|
||||
while (!trd->empty()) {
|
||||
SrsMessage* msg = trd->pump();
|
||||
srs_warn("pump client message to process.");
|
||||
srs_verbose("pump client message to process.");
|
||||
|
||||
if ((ret = process_play_control_msg(consumer, msg)) != ERROR_SUCCESS) {
|
||||
if (!srs_is_system_control_error(ret)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue