Bug 1273652: Always reinitialize the receiver/jitterbuffer when reseting video decoding r=pkerr

This commit is contained in:
Randell Jesup 2016-07-12 15:42:59 -04:00
parent 24932bb5c1
commit 3cf9863b59

View File

@ -514,10 +514,12 @@ int32_t VideoReceiver::ResetDecoder() {
bool reset_key_request = false;
{
CriticalSectionScoped cs(_receiveCritSect);
_receiver.Initialize();
_timing.Reset();
reset_key_request = true;
if (_decoder != NULL) {
_receiver.Initialize();
_timing.Reset();
reset_key_request = true;
// _receiver.Initialize();
// _timing.Reset();
_decoder->Reset();
}
}