Skip to content

Commit

Permalink
shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rien committed Oct 29, 2020
1 parent 6af4d8e commit 6072366
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions reStream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ rm2_getpointer() {
;;
*) # use last known version if we cannot find a match
echo "WARNING: unknown reMarkable 2 release version" >&2
echo "consider updating if reStream doesn't work" >&2
echo "consider updating if reStream doesn't work" >&2
echo "???"
;;
;;
esac
}

Expand Down Expand Up @@ -134,12 +134,10 @@ case "$rm_version" in
;;
esac


# technical parameters
loop_wait="true"
loglevel="info"


fallback_to_gzip() {
echo "Falling back to gzip, your experience may not be optimal."
echo "Go to https:/rien/reStream/#sub-second-latency for a better experience."
Expand Down Expand Up @@ -185,7 +183,6 @@ video_filters=""
# store extra ffmpeg arguments in $@
set --


# rotate 90 degrees if landscape=true
$landscape && video_filters="$video_filters,transpose=1"

Expand All @@ -209,7 +206,6 @@ fi
# set each frame presentation time to the time it is received
video_filters="$video_filters,setpts=(RTCTIME - RTCSTART) / (TB * 1000000)"


# loop that keeps on reading and compressing, to be executed remotely
read_loop="while $head_fb0; do $loop_wait; done | $compress"

Expand Down

0 comments on commit 6072366

Please sign in to comment.