зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1118141
- Update Audio buffers when receiving INFO_OUTPUT_BUFFERS_CHANGED. r=edwin.
This commit is contained in:
Родитель
c39c465850
Коммит
43fbb190db
|
@ -163,12 +163,19 @@ GonkAudioDecoderManager::Output(int64_t aStreamOffset,
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
case android::INFO_FORMAT_CHANGED:
|
case android::INFO_FORMAT_CHANGED:
|
||||||
case android::INFO_OUTPUT_BUFFERS_CHANGED:
|
|
||||||
{
|
{
|
||||||
// If the format changed, update our cached info.
|
// If the format changed, update our cached info.
|
||||||
GADM_LOG("Decoder format changed");
|
GADM_LOG("Decoder format changed");
|
||||||
return Output(aStreamOffset, aOutData);
|
return Output(aStreamOffset, aOutData);
|
||||||
}
|
}
|
||||||
|
case android::INFO_OUTPUT_BUFFERS_CHANGED:
|
||||||
|
{
|
||||||
|
GADM_LOG("Info Output Buffers Changed");
|
||||||
|
if (mDecoder->UpdateOutputBuffers()) {
|
||||||
|
return Output(aStreamOffset, aOutData);
|
||||||
|
}
|
||||||
|
return NS_ERROR_FAILURE;
|
||||||
|
}
|
||||||
case -EAGAIN:
|
case -EAGAIN:
|
||||||
{
|
{
|
||||||
return NS_ERROR_NOT_AVAILABLE;
|
return NS_ERROR_NOT_AVAILABLE;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче