Skip to content

Commit 7c258ae

Browse files
authored
Merge pull request #230 from hslabbert/fix_media_popen_pipes
fix: media subprocess streams to DEVNULL and STDOUT
2 parents 77566cd + 308bcb5 commit 7c258ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lnxlink/modules/media.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ def run_playmedia_thread(self, player, options, url, media_type):
307307
self.process = subprocess.Popen(
308308
" ".join(commands),
309309
shell=True,
310-
stdout=subprocess.PIPE,
311-
stderr=subprocess.PIPE,
310+
stdout=subprocess.DEVNULL,
311+
stderr=subprocess.STDOUT,
312312
)
313313
self.process.wait()
314314
logger.info("Ended playing media...")

0 commit comments

Comments
 (0)