mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
streamts.cpp and record.cpp: fix memleak
Origin commit data
------------------
Branch: ni/coolstream
Commit: d46fc58eb4
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-13 (Mon, 13 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2312,7 +2312,6 @@ bool CStreamRec::Open(CZapitChannel * channel)
|
|||||||
snprintf(ifcx->filename, sizeof(ifcx->filename), "%s", channel->getUrl().c_str());
|
snprintf(ifcx->filename, sizeof(ifcx->filename), "%s", channel->getUrl().c_str());
|
||||||
av_dump_format(ifcx, 0, ifcx->filename, 0);
|
av_dump_format(ifcx, 0, ifcx->filename, 0);
|
||||||
#else
|
#else
|
||||||
ifcx->url = av_strdup(!channel->getUrl().empty() ? channel->getUrl().c_str() : "");
|
|
||||||
av_dump_format(ifcx, 0, ifcx->url, 0);
|
av_dump_format(ifcx, 0, ifcx->url, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -2425,7 +2424,6 @@ void CStreamRec::run()
|
|||||||
}
|
}
|
||||||
if(ret != AVERROR_EOF){
|
if(ret != AVERROR_EOF){
|
||||||
av_packet_unref(&pkt);
|
av_packet_unref(&pkt);
|
||||||
newpkt.buf = av_buffer_create(newpkt.data, newpkt.size, av_buffer_default_free, NULL, 0);
|
|
||||||
pkt = newpkt;
|
pkt = newpkt;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -866,7 +866,6 @@ bool CStreamStream::Open()
|
|||||||
snprintf(ifcx->filename, sizeof(ifcx->filename), "%s", channel->getUrl().c_str());
|
snprintf(ifcx->filename, sizeof(ifcx->filename), "%s", channel->getUrl().c_str());
|
||||||
av_dump_format(ifcx, 0, ifcx->filename, 0);
|
av_dump_format(ifcx, 0, ifcx->filename, 0);
|
||||||
#else
|
#else
|
||||||
ifcx->url = av_strdup(!channel->getUrl().empty() ? channel->getUrl().c_str() : "");
|
|
||||||
av_dump_format(ifcx, 0, ifcx->url, 0);
|
av_dump_format(ifcx, 0, ifcx->url, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -991,7 +990,6 @@ void CStreamStream::run()
|
|||||||
}
|
}
|
||||||
if(ret != AVERROR_EOF){
|
if(ret != AVERROR_EOF){
|
||||||
av_packet_unref(&pkt);
|
av_packet_unref(&pkt);
|
||||||
newpkt.buf = av_buffer_create(newpkt.data, newpkt.size, av_buffer_default_free, NULL, 0);
|
|
||||||
pkt = newpkt;
|
pkt = newpkt;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user