mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for bug #251, the shared ptr message share the header. 2.0.64
This commit is contained in:
parent
330819fb74
commit
bba6063492
11 changed files with 313 additions and 125 deletions
|
@ -642,11 +642,11 @@ int SrsRtmpConn::do_playing(SrsSource* source, SrsQueueRecvThread* trd)
|
|||
|
||||
// foreach msg, collect the duration.
|
||||
// @remark: never use msg when sent it, for the protocol sdk will free it.
|
||||
if (starttime < 0 || starttime > msg->header.timestamp) {
|
||||
starttime = msg->header.timestamp;
|
||||
if (starttime < 0 || starttime > msg->timestamp) {
|
||||
starttime = msg->timestamp;
|
||||
}
|
||||
duration += msg->header.timestamp - starttime;
|
||||
starttime = msg->header.timestamp;
|
||||
duration += msg->timestamp - starttime;
|
||||
starttime = msg->timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue