Change JitterBuffer::GetNackList to return a std::vector<uint16_t>.

This fixed the problem with returning a pointer to an internal buffer
of a JitterBuffer.

R=stefan@webrtc.org
BUG=none
TEST=none

Review URL: https://webrtc-codereview.appspot.com/53639004

Cr-Commit-Position: refs/heads/master@{#9365}
This commit is contained in:
Wan-Teh Chang
2015-06-03 15:03:35 -07:00
parent 248b0b0790
commit b1825a4038
8 changed files with 82 additions and 162 deletions

View File

@ -23,11 +23,6 @@ namespace webrtc {
class Clock;
class VCMEncodedFrame;
enum VCMNackStatus {
kNackOk,
kNackKeyFrameRequest
};
class VCMReceiver {
public:
VCMReceiver(VCMTiming* timing,
@ -55,8 +50,7 @@ class VCMReceiver {
int max_packet_age_to_nack,
int max_incomplete_time_ms);
VCMNackMode NackMode() const;
VCMNackStatus NackList(uint16_t* nackList, uint16_t size,
uint16_t* nack_list_length);
std::vector<uint16_t> NackList(bool* request_key_frame);
// Receiver video delay.
int SetMinReceiverDelay(int desired_delay_ms);