mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Merge pull request #2327 from pipelka/audio-seek-fix
reconfigure audiotrack on format change
This commit is contained in:
commit
5742c87755
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue