зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1273947 - Update ResetDecode() to ResetDecode(TargetQueue) r=jya
MozReview-Commit-ID: A32znxwP5gb --HG-- extra : rebase_source : 0ebf1c01e7efc3c9d34ca77fdf5123458c7eee27
This commit is contained in:
Родитель
9d7707097f
Коммит
e787353d06
|
@ -176,7 +176,7 @@ void MediaOmxReader::ReleaseMediaResources()
|
|||
mMediaResourceRequest.DisconnectIfExists();
|
||||
mMetadataPromise.RejectIfExists(ReadMetadataFailureReason::METADATA_ERROR, __func__);
|
||||
|
||||
ResetDecode();
|
||||
ResetDecode(AUDIO_VIDEO);
|
||||
// Before freeing a video codec, all video buffers needed to be released
|
||||
// even from graphics pipeline.
|
||||
VideoFrameContainer* container = mDecoder->GetVideoFrameContainer();
|
||||
|
|
|
@ -74,11 +74,11 @@ protected:
|
|||
void NotifyDataArrivedInternal() override;
|
||||
public:
|
||||
|
||||
nsresult ResetDecode() override
|
||||
nsresult ResetDecode(TargetQueues aQueues) override
|
||||
{
|
||||
mSeekRequest.DisconnectIfExists();
|
||||
mSeekPromise.RejectIfExists(NS_OK, __func__);
|
||||
return MediaDecoderReader::ResetDecode();
|
||||
return MediaDecoderReader::ResetDecode(aQueues);
|
||||
}
|
||||
|
||||
bool DecodeAudioData() override;
|
||||
|
|
Загрузка…
Ссылка в новой задаче