Add _decoder CHECK to VCMGenericDecoder constructor.
This should never be using a null decoder, but it looks like it's crashing out in the field. Adding a CHECK to see if it catches any interesting stack traces. Also making the _decoder pointer const to show that it should never be changing. BUG=chromium:563299 R=stefan@webrtc.org Review URL: https://codereview.webrtc.org/1485713002 . Cr-Commit-Position: refs/heads/master@{#10843}
This commit is contained in:
@ -65,7 +65,7 @@ class VCMGenericDecoder
|
||||
{
|
||||
friend class VCMCodecDataBase;
|
||||
public:
|
||||
VCMGenericDecoder(VideoDecoder& decoder, bool isExternal = false);
|
||||
VCMGenericDecoder(VideoDecoder* decoder, bool external);
|
||||
~VCMGenericDecoder();
|
||||
|
||||
/**
|
||||
@ -102,7 +102,7 @@ private:
|
||||
VCMDecodedFrameCallback* _callback;
|
||||
VCMFrameInformation _frameInfos[kDecoderFrameMemoryLength];
|
||||
uint32_t _nextFrameInfoIdx;
|
||||
VideoDecoder& _decoder;
|
||||
VideoDecoder* const _decoder;
|
||||
VideoCodecType _codecType;
|
||||
bool _isExternal;
|
||||
bool _keyFrameDecoded;
|
||||
|
Reference in New Issue
Block a user