migrate to pathlib, simplify COPY_BUFSIZE
This commit is contained in:
parent
73eaa81e2a
commit
532a5462c9
@ -19,7 +19,7 @@
|
|||||||
This module plays the compressed output directly on the desktop.
|
This module plays the compressed output directly on the desktop.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
from platform import system
|
||||||
from subprocess import PIPE, Popen
|
from subprocess import PIPE, Popen
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
@ -29,8 +29,7 @@ from ..utils import (ff_proc, ffmpeg_stderr_reader, log, lower_third,
|
|||||||
messenger, playlist, pre, pre_audio_codec, stdin_args,
|
messenger, playlist, pre, pre_audio_codec, stdin_args,
|
||||||
terminate_processes)
|
terminate_processes)
|
||||||
|
|
||||||
_WINDOWS = os.name == 'nt'
|
COPY_BUFSIZE = 1024 * 1024 if system() == 'Windows' else 65424
|
||||||
COPY_BUFSIZE = 1024 * 1024 if _WINDOWS else 65424
|
|
||||||
|
|
||||||
|
|
||||||
def output():
|
def output():
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
This module streams the files out to a remote target.
|
This module streams the files out to a remote target.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
from platform import system
|
||||||
from subprocess import PIPE, Popen
|
from subprocess import PIPE, Popen
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
@ -29,8 +29,7 @@ from ..utils import (ff_proc, ffmpeg_stderr_reader, get_date, log, lower_third,
|
|||||||
messenger, playlist, playout, pre, pre_audio_codec,
|
messenger, playlist, playout, pre, pre_audio_codec,
|
||||||
stdin_args, terminate_processes)
|
stdin_args, terminate_processes)
|
||||||
|
|
||||||
_WINDOWS = os.name == 'nt'
|
COPY_BUFSIZE = 1024 * 1024 if system() == 'Windows' else 65424
|
||||||
COPY_BUFSIZE = 1024 * 1024 if _WINDOWS else 65424
|
|
||||||
|
|
||||||
|
|
||||||
def output():
|
def output():
|
||||||
|
Loading…
Reference in New Issue
Block a user