Remove Reset from conditionally-compiled decoders.
Reset is no longer called but removal of them was missed in a previous commit. BUG=webrtc:5475 TBR=hbos@webrtc.org,tkchin@webrtc.org Review URL: https://codereview.webrtc.org/1690193003 . Cr-Commit-Position: refs/heads/master@{#11603}
This commit is contained in:
@ -241,13 +241,6 @@ int32_t H264DecoderImpl::Release() {
|
|||||||
return WEBRTC_VIDEO_CODEC_OK;
|
return WEBRTC_VIDEO_CODEC_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t H264DecoderImpl::Reset() {
|
|
||||||
if (!IsInitialized())
|
|
||||||
return WEBRTC_VIDEO_CODEC_UNINITIALIZED;
|
|
||||||
InitDecode(nullptr, 1);
|
|
||||||
return WEBRTC_VIDEO_CODEC_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
int32_t H264DecoderImpl::RegisterDecodeCompleteCallback(
|
int32_t H264DecoderImpl::RegisterDecodeCompleteCallback(
|
||||||
DecodedImageCallback* callback) {
|
DecodedImageCallback* callback) {
|
||||||
decoded_image_callback_ = callback;
|
decoded_image_callback_ = callback;
|
||||||
|
|||||||
@ -40,7 +40,6 @@ class H264DecoderImpl : public H264Decoder {
|
|||||||
int32_t InitDecode(const VideoCodec* codec_settings,
|
int32_t InitDecode(const VideoCodec* codec_settings,
|
||||||
int32_t number_of_cores) override;
|
int32_t number_of_cores) override;
|
||||||
int32_t Release() override;
|
int32_t Release() override;
|
||||||
int32_t Reset() override;
|
|
||||||
|
|
||||||
int32_t RegisterDecodeCompleteCallback(
|
int32_t RegisterDecodeCompleteCallback(
|
||||||
DecodedImageCallback* callback) override;
|
DecodedImageCallback* callback) override;
|
||||||
|
|||||||
@ -168,11 +168,6 @@ int H264VideoToolboxDecoder::Release() {
|
|||||||
return WEBRTC_VIDEO_CODEC_OK;
|
return WEBRTC_VIDEO_CODEC_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int H264VideoToolboxDecoder::Reset() {
|
|
||||||
ResetDecompressionSession();
|
|
||||||
return WEBRTC_VIDEO_CODEC_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
int H264VideoToolboxDecoder::ResetDecompressionSession() {
|
int H264VideoToolboxDecoder::ResetDecompressionSession() {
|
||||||
DestroyDecompressionSession();
|
DestroyDecompressionSession();
|
||||||
|
|
||||||
|
|||||||
@ -43,8 +43,6 @@ class H264VideoToolboxDecoder : public H264Decoder {
|
|||||||
|
|
||||||
int Release() override;
|
int Release() override;
|
||||||
|
|
||||||
int Reset() override;
|
|
||||||
|
|
||||||
const char* ImplementationName() const override;
|
const char* ImplementationName() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user