Fix incorrect DCHECK in generic_decoder.cc.

When ownership is not external, the decoder pointer should be valid.

BUG=b/63658384
TBR=magjed@webrtc.org

Review-Url: https://codereview.webrtc.org/2975383002
Cr-Commit-Position: refs/heads/master@{#19041}
This commit is contained in:
tommi 2017-07-15 11:33:35 -07:00 committed by Commit Bot
parent 7919fa5f4a
commit 058aa719ff

View File

@ -196,7 +196,7 @@ VCMGenericDecoder::~VCMGenericDecoder() {
decoder_->Release();
if (_isExternal)
decoder_.release();
RTC_DCHECK(_isExternal || !decoder_);
RTC_DCHECK(_isExternal || decoder_);
}
int32_t VCMGenericDecoder::InitDecode(const VideoCodec* settings,