mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
reconfigure audiotrack on format change
under certain circumstances (e.g. seek to a position where the input format changed) the audio track needs a reconfigure even if there aren't any pending buffers
This commit is contained in:
parent
5a16aee2c9
commit
24a0061caa
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