mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-21 01:13:37 +08:00
优化代码
This commit is contained in:
parent
85f05adc06
commit
18a0691448
@ -180,12 +180,12 @@ void RtpReceiver::setPoolSize(int size) {
|
||||
_rtp_pool.setSize(size);
|
||||
}
|
||||
|
||||
int RtpReceiver::getJitterSize(int iTrackidx){
|
||||
return _rtp_sort_cache_map[iTrackidx].size();
|
||||
int RtpReceiver::getJitterSize(int track_index){
|
||||
return _rtp_sort_cache_map[track_index].size();
|
||||
}
|
||||
|
||||
int RtpReceiver::getCycleCount(int iTrackidx){
|
||||
return _seq_cycle_count[iTrackidx];
|
||||
int RtpReceiver::getCycleCount(int track_index){
|
||||
return _seq_cycle_count[track_index];
|
||||
}
|
||||
|
||||
|
||||
|
@ -58,14 +58,14 @@ protected:
|
||||
|
||||
/**
|
||||
* rtp数据包排序后输出
|
||||
* @param rtppt rtp数据包
|
||||
* @param trackidx track索引
|
||||
* @param rtp rtp数据包
|
||||
* @param track_index track索引
|
||||
*/
|
||||
virtual void onRtpSorted(const RtpPacket::Ptr &rtp, int trackidx){}
|
||||
virtual void onRtpSorted(const RtpPacket::Ptr &rtp, int track_index){}
|
||||
void clear();
|
||||
void setPoolSize(int size);
|
||||
int getJitterSize(int iTrackidx);
|
||||
int getCycleCount(int iTrackidx);
|
||||
int getJitterSize(int track_index);
|
||||
int getCycleCount(int track_index);
|
||||
private:
|
||||
void sortRtp(const RtpPacket::Ptr &rtp , int track_index);
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user