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:
parent
7919fa5f4a
commit
058aa719ff
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user