Bug 1273947 - Update ResetDecode() to ResetDecode(TargetQueue) r=jya

MozReview-Commit-ID: A32znxwP5gb

--HG--
extra : rebase_source : 0ebf1c01e7efc3c9d34ca77fdf5123458c7eee27
This commit is contained in:
Alexandre Lissy 2016-05-18 18:27:14 +02:00
Родитель 9d7707097f
Коммит e787353d06
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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;