mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for bug #194, refine code, remove the old duplicated code.
This commit is contained in:
parent
1f5c82ecc4
commit
8845bb7caf
12 changed files with 42 additions and 119 deletions
|
@ -517,7 +517,7 @@ int SrsRtmpConn::playing(SrsSource* source)
|
|||
|
||||
// initialize other components
|
||||
SrsPithyPrint pithy_print(SRS_CONSTS_STAGE_PLAY_USER);
|
||||
SrsSharedPtrMessageArray msgs(SYS_CONSTS_MAX_PLAY_SEND_MSGS);
|
||||
SrsMessageArray msgs(SYS_CONSTS_MAX_PLAY_SEND_MSGS);
|
||||
bool user_specified_duration_to_stop = (req->duration > 0);
|
||||
int64_t starttime = -1;
|
||||
|
||||
|
@ -574,7 +574,7 @@ int SrsRtmpConn::playing(SrsSource* source)
|
|||
// we start to collect the durations for each message.
|
||||
if (user_specified_duration_to_stop) {
|
||||
for (int i = 0; i < count; i++) {
|
||||
SrsSharedPtrMessage* msg = msgs.msgs[i];
|
||||
SrsMessage* msg = msgs.msgs[i];
|
||||
|
||||
// foreach msg, collect the duration.
|
||||
// @remark: never use msg when sent it, for the protocol sdk will free it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue