mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 23:32:22 +08:00
新增媒体流flush机制:#1996
This commit is contained in:
@@ -59,12 +59,16 @@ GB28181Process::GB28181Process(const MediaInfo &media_info, MediaSinkInterface *
|
||||
_interface = sink;
|
||||
}
|
||||
|
||||
GB28181Process::~GB28181Process() {}
|
||||
|
||||
void GB28181Process::onRtpSorted(RtpPacket::Ptr rtp) {
|
||||
_rtp_decoder[rtp->getHeader()->pt]->inputRtp(rtp, false);
|
||||
}
|
||||
|
||||
void GB28181Process::flush() {
|
||||
if (_decoder) {
|
||||
_decoder->flush();
|
||||
}
|
||||
}
|
||||
|
||||
bool GB28181Process::inputRtp(bool, const char *data, size_t data_len) {
|
||||
GET_CONFIG(uint32_t, h264_pt, RtpProxy::kH264PT);
|
||||
GET_CONFIG(uint32_t, h265_pt, RtpProxy::kH265PT);
|
||||
|
||||
Reference in New Issue
Block a user