Skip to content

Commit

Permalink
change spilt op to preserve quoted strings, #109
Browse files Browse the repository at this point in the history
  • Loading branch information
jb-alvarado committed Jan 15, 2022
1 parent 25ec4f8 commit 82c92a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ffplayout/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import logging
import math
import re
import shlex
import signal
import smtplib
import socket
Expand Down Expand Up @@ -264,9 +265,9 @@ def load_config():
playout.mode = _cfg['out']['mode']
playout.name = _cfg['out']['service_name']
playout.provider = _cfg['out']['service_provider']
playout.ffmpeg_param = _cfg['out']['ffmpeg_param'].split(' ')
playout.stream_output = _cfg['out']['stream_output'].split(' ')
playout.hls_output = _cfg['out']['hls_output'].split(' ')
playout.ffmpeg_param = shlex.split(_cfg['out']['ffmpeg_param'])
playout.stream_output = shlex.split(_cfg['out']['stream_output'])
playout.hls_output = shlex.split(_cfg['out']['hls_output'])


# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 82c92a8

Please sign in to comment.