mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge from feilong, fix memory leak.
This commit is contained in:
parent
ad5956eab4
commit
a4b61081cc
1 changed files with 1 additions and 2 deletions
|
@ -639,8 +639,7 @@ int SrsGopCache::dump(SrsConsumer* consumer, bool atc, int tba, int tbv, SrsRtmp
|
||||||
std::vector<SrsSharedPtrMessage*>::iterator it;
|
std::vector<SrsSharedPtrMessage*>::iterator it;
|
||||||
for (it = gop_cache.begin(); it != gop_cache.end(); ++it) {
|
for (it = gop_cache.begin(); it != gop_cache.end(); ++it) {
|
||||||
SrsSharedPtrMessage* msg = *it;
|
SrsSharedPtrMessage* msg = *it;
|
||||||
SrsSharedPtrMessage* copy = msg->copy();
|
if ((ret = consumer->enqueue(msg, atc, tba, tbv, jitter_algorithm)) != ERROR_SUCCESS) {
|
||||||
if ((ret = consumer->enqueue(copy, atc, tba, tbv, jitter_algorithm)) != ERROR_SUCCESS) {
|
|
||||||
srs_error("dispatch cached gop failed. ret=%d", ret);
|
srs_error("dispatch cached gop failed. ret=%d", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue