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