优化代码

This commit is contained in:
xiongziliang 2019-06-24 17:01:15 +08:00
parent 85f05adc06
commit 18a0691448
2 changed files with 9 additions and 9 deletions

View File

@ -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];
} }

View File

@ -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: