mirror of
https://github.com/androidx/media.git
synced 2025-05-08 16:10:38 +08:00
Merge pull request #2327 from pipelka/audio-seek-fix
reconfigure audiotrack on format change
This commit is contained in:
commit
5742c87755
@ -552,6 +552,7 @@ public abstract class SimpleDecoderAudioRenderer extends BaseRenderer implements
|
|||||||
// There aren't any final output buffers, so release the decoder immediately.
|
// There aren't any final output buffers, so release the decoder immediately.
|
||||||
releaseDecoder();
|
releaseDecoder();
|
||||||
maybeInitDecoder();
|
maybeInitDecoder();
|
||||||
|
audioTrackNeedsConfigure = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
eventDispatcher.inputFormatChanged(newFormat);
|
eventDispatcher.inputFormatChanged(newFormat);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user