File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ export const reencodeAudioTrack = async ({
230
230
} ) ;
231
231
232
232
state . addWaitForFinishPromise ( async ( ) => {
233
- await audioDecoder . waitForQueueToBeLessThan ( 0 ) ;
233
+ Log . verbose ( logLevel , 'Waiting for audio decoder to finish' ) ;
234
+ await audioDecoder . flush ( ) ;
234
235
Log . verbose ( logLevel , 'Audio decoder finished' ) ;
235
236
audioDecoder . close ( ) ;
236
237
await audioProcessingQueue . ioSynchronizer . waitForQueueSize ( 0 ) ;
Original file line number Diff line number Diff line change @@ -205,8 +205,7 @@ export const reencodeVideoTrack = async ({
205
205
206
206
state . addWaitForFinishPromise ( async ( ) => {
207
207
Log . verbose ( logLevel , 'Waiting for video decoder to finish' ) ;
208
-
209
- await videoDecoder . waitForQueueToBeLessThan ( 0 ) ;
208
+ await videoDecoder . flush ( ) ;
210
209
videoDecoder . close ( ) ;
211
210
Log . verbose (
212
211
logLevel ,
@@ -230,7 +229,7 @@ export const reencodeVideoTrack = async ({
230
229
) ;
231
230
232
231
await controller . _internals . _mediaParserController . _internals . checkForAbortAndPause ( ) ;
233
- await videoDecoder . waitForQueueToBeLessThan ( 10 ) ;
232
+ await videoDecoder . waitForQueueToBeLessThan ( 15 ) ;
234
233
235
234
if ( chunk . type === 'key' ) {
236
235
await videoDecoder . flush ( ) ;
You can’t perform that action at this time.
0 commit comments