From 5ecc03eb39f4634968214c850aacd7078738b7b0 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 22 May 2017 14:09:59 +0200 Subject: Tidy: Rename internal variable muxcount → targetcount. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/stream | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/stream b/bin/stream index c3063ab..502fff5 100755 --- a/bin/stream +++ b/bin/stream @@ -239,8 +239,8 @@ encode_x264() { bitrate=$1; speed=$2; # * routing based on http://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs#Teepseudo-muxer # * Use same RTP payload types as GStreamer mux_webm() { - muxcount=$(echo "$TARGETS_WEBM" | wc --words) - if [ $muxcount -lt 2 ]; then + targetcount=$(echo "$TARGETS_WEBM" | wc --words) + if [ $targetcount -lt 2 ]; then case "$TARGETS_WEBM" in rtp_opus) echo_n "-f rtp -payload_type 111 rtp://$IP:$FIRSTPORT?pkt_size=1440";; rtp_vp8) echo_n "-f rtp -payload_type 100 rtp://$IP:$((FIRSTPORT+2))?pkt_size=1440";; @@ -254,8 +254,8 @@ mux_webm() { rtp_vp8) echo_n "[select=\'v\':f=rtp:payload_type=100]rtp://$IP:$((FIRSTPORT+2))?pkt_size=1440";; *) exit1 "Unsupported muxing $muxing";; esac - muxcount=$((muxcount-1)) - [ $muxcount -lt 1 ] || echo_n '|' + targetcount=$((targetcount-1)) + [ $targetcount -lt 1 ] || echo_n '|' done fi } -- cgit v1.2.3