From 545e7c925c7a74ac40bc8a835173a69b47bdf2f4 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 26 Feb 2017 15:50:10 +0100 Subject: Improve quoting (thanks to shellcheck). --- bin/recv-gst-rtp-v-a | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'bin') 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) -- cgit v1.2.3