mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1118141 - Update Audio buffers when receiving INFO_OUTPUT_BUFFERS_CHANGED. r=edwin.
This commit is contained in:
parent
3e9930be3e
commit
8cd5047df1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user