mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
新增媒体流flush机制:#1996
This commit is contained in:
@@ -108,6 +108,9 @@ void SrtTransportImp::onSRTData(DataPacket::Ptr pkt) {
|
||||
}
|
||||
|
||||
void SrtTransportImp::onShutdown(const SockException &ex) {
|
||||
if (_decoder) {
|
||||
_decoder->flush();
|
||||
}
|
||||
SrtTransport::onShutdown(ex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user