gst-element-check.m4: fix action-if-found and not-found invocation

Arguments got shifted back by one.
This commit is contained in:
Tim-Philipp Müller 2012-09-05 19:55:10 +01:00
parent 9439e73eec
commit fe3efe2b75

View file

@ -20,14 +20,14 @@ AC_DEFUN([GST_ELEMENT_CHECK],
AC_MSG_CHECKING(GStreamer $gstapiversion element $1 >= $2) AC_MSG_CHECKING(GStreamer $gstapiversion element $1 >= $2)
if [ $gstinspect --exists --atleast-version=$2 $1 ]; then if [ $gstinspect --exists --atleast-version=$2 $1 ]; then
AC_MSG_RESULT([found]) AC_MSG_RESULT([found])
$2 $3
else else
if [ $gstinspect --exists $1 ]; then if [ $gstinspect --exists $1 ]; then
AC_MSG_RESULT([found, but too old]) AC_MSG_RESULT([found, but too old])
else else
AC_MSG_RESULT([not found]) AC_MSG_RESULT([not found])
fi fi
$3 $4
fi fi
fi fi
]) ])