Ignore stdout/stderr from spawned player

This prevents stalling in players like mpv/mplayer for some reason.

I think this could be because of the large number of updates that are
being written to stdout that's filling up a buffer and preventing
playback from continuing.
This commit is contained in:
Feross Aboukhadijeh
2016-08-21 16:54:27 -07:00
parent 93ddb8d638
commit d1e557f054

View File

@@ -41,7 +41,7 @@ function kill () {
function spawnExternal (path, args) {
log('Running external media player:', path + ' ' + args.join(' '))
proc = cp.spawn(path, args)
proc = cp.spawn(path, args, {stdio: 'ignore'})
// If it works, close the modal after a second
var closeModalTimeout = setTimeout(() =>