jansmolders86 / mediacenterjs

A HTML/CSS/Javascript (NodeJS) based Media center
http://mediacenterjs.com
1.29k stars 243 forks source link

Parallel processing of audio tracks #243

Closed Borewit closed 6 years ago

Borewit commented 6 years ago

Avoid parallel processing of audio tracks

Calling async file I/O functions in a loop is not a good idea: https://github.com/jansmolders86/mediacenterjs/blob/86d99bacc1c5aeba8c7a325fda45e2bd5465af4f/lib/media-handler.js#L50

This can cause:

I suggest to to this in a serial fashion.