summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-02-26 15:50:10 +0100
committerJonas Smedegaard <dr@jones.dk>2017-02-26 15:50:10 +0100
commit545e7c925c7a74ac40bc8a835173a69b47bdf2f4 (patch)
tree674ed0ba4bcc4bc3192ad709c72333ef07427f32
parentd9fc96d135fa868206c0b85bb42f46188a4c5648 (diff)
Improve quoting (thanks to shellcheck).
-rwxr-xr-xbin/recv-gst-rtp-v-a13
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)