projects
/
experiments
/
gstreamer.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
01038cb
)
gst-screencast.sh: fix passing XIMAGESRC_ARGS
author
Antonio Ospite <ao2@ao2.it>
Mon, 31 Jul 2017 10:53:44 +0000
(12:53 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Mon, 31 Jul 2017 10:53:44 +0000
(12:53 +0200)
shell/gst-screencast.sh
patch
|
blob
|
history
diff --git
a/shell/gst-screencast.sh
b/shell/gst-screencast.sh
index
243e556
..
e9c03d0
100755
(executable)
--- a/
shell/gst-screencast.sh
+++ b/
shell/gst-screencast.sh
@@
-73,8
+73,9
@@
done
[ -f "$1" ] && { echo "Error: file '${1}' already exists!" 1>&2; exit 2; }
FILENAME="$1"
[ -f "$1" ] && { echo "Error: file '${1}' already exists!" 1>&2; exit 2; }
FILENAME="$1"
+shift
-if [ "x" = "x$
2
" ];
+if [ "x" = "x$
1
" ];
then
SHADOW_SIZE=0
SHADOW_X_OFFSET=0
then
SHADOW_SIZE=0
SHADOW_X_OFFSET=0
@@
-99,7
+100,7
@@
then
XIMAGESRC_ARGS="startx=$(($X + $SHADOW_SIZE - $SHADOW_X_OFFSET)) starty=$(($Y + $SHADOW_SIZE - $SHADOW_Y_OFFSET)) endx=$(($X + $WIDTH - 1 - $SHADOW_SIZE - $SHADOW_X_OFFSET)) endy=$(($Y + $HEIGHT - 1 - $SHADOW_SIZE - $SHADOW_Y_OFFSET))"
else
XIMAGESRC_ARGS="startx=$(($X + $SHADOW_SIZE - $SHADOW_X_OFFSET)) starty=$(($Y + $SHADOW_SIZE - $SHADOW_Y_OFFSET)) endx=$(($X + $WIDTH - 1 - $SHADOW_SIZE - $SHADOW_X_OFFSET)) endy=$(($Y + $HEIGHT - 1 - $SHADOW_SIZE - $SHADOW_Y_OFFSET))"
else
- XIMAGESRC_ARGS="$
2
"
+ XIMAGESRC_ARGS="$
@
"
fi
if [ $SINGLE_SHOT -eq 1 ];
fi
if [ $SINGLE_SHOT -eq 1 ];