diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-02-26 15:50:10 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-02-26 15:50:10 +0100 |
commit | 545e7c925c7a74ac40bc8a835173a69b47bdf2f4 (patch) | |
tree | 674ed0ba4bcc4bc3192ad709c72333ef07427f32 /bin | |
parent | d9fc96d135fa868206c0b85bb42f46188a4c5648 (diff) |
Improve quoting (thanks to shellcheck).
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/recv-gst-rtp-v-a | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bin/recv-gst-rtp-v-a b/bin/recv-gst-rtp-v-a index 2060a33..92e1ae8 100755 --- a/bin/recv-gst-rtp-v-a +++ b/bin/recv-gst-rtp-v-a @@ -44,14 +44,15 @@ stream() { PLAYBIN=$3 echo \ udpsrc port=$((5000+ID-1)) $RECHOST caps=\""$CAPS"\" \ - ! rtpbin.recv_rtp_sink_$ID rtpbin. \ + ! "rtpbin.recv_rtp_sink_$ID" rtpbin. \ ! $PLAYBIN \ - udpsrc port=$((5010+ID-1)) $RECHOST ! rtpbin.recv_rtcp_sink_$ID \ - rtpbin.send_rtcp_src_$ID \ - ! udpsink port=$((5020+ID-1)) $CAMHOST sync=false async=false + udpsrc port=$((5010+ID-1)) "$RECHOST" \ + ! "rtpbin.recv_rtcp_sink_$ID" \ + "rtpbin.send_rtcp_src_$ID" \ + ! udpsink port=$((5020+ID-1)) "$CAMHOST" sync=false async=false } gst-launch-1.0 -v \ rtpbin name=rtpbin \ - $(for i in $(seq ${VCOUNT:-1}); do stream "$i" "$VCAPS" "$VDEC ! autovideosink"; done) \ - $(for j in $(seq ${ACOUNT:-0}); do stream $((VCOUNT+$j)) "$ACAPS" "$ADEC ! autoaudiosink"; done) + $(for i in $(seq "${VCOUNT:-1}"); do stream "$i" "$VCAPS" "$VDEC ! autovideosink"; done) \ + $(for j in $(seq "${ACOUNT:-0}"); do stream $((VCOUNT+j)) "$ACAPS" "$ADEC ! autoaudiosink"; done) |