[totem] Show proper names of GStreamer plugins during autoconf



commit ce3d32f2b1ddfafe27ab6a1f982511b8ccf85e35
Author: Alexander Saprykin <xelfium gmail com>
Date:   Tue Apr 10 17:32:53 2012 +0400

    Show proper names of GStreamer plugins during autoconf
    
    https://bugzilla.gnome.org/show_bug.cgi?id=673602

 configure.in |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/configure.in b/configure.in
index c9437ca..acfc8c6 100644
--- a/configure.in
+++ b/configure.in
@@ -137,48 +137,58 @@ else
 fi
 
 dnl Check for elements from gst-plugins-base
+dnl Set plugins which contain below elements
+set -- playback ffmpegcolorspace videoscale
 for base_element in playbin2 ffmpegcolorspace videoscale
 do
-	AC_MSG_CHECKING([GStreamer 0.10 $base_element plugin])
+	AC_MSG_CHECKING([GStreamer 0.10 $base_element element])
 	if $gst010_inspect $base_element >/dev/null 2>/dev/null; then
 		AC_MSG_RESULT([yes])
 	else
 		AC_MSG_RESULT([no])
 		AC_MSG_ERROR([
-			Cannot find required GStreamer-0.10 plugin '$base_element'.
+			Cannot find required GStreamer-0.10 plugin '$1'.
 			It should be part of gst-plugins-base. Please install it.
 		])
+
 	fi
+	shift;
 done
 
 dnl Check for elements from gst-plugins-good
+dnl Set plugins which contain below elements
+set -- autodetect goom
 for good_element in autoaudiosink goom
 do
-	AC_MSG_CHECKING([GStreamer 0.10 $good_element plugin])
+	AC_MSG_CHECKING([GStreamer 0.10 $good_element element])
 	if $gst010_inspect $good_element >/dev/null 2>/dev/null; then
 		AC_MSG_RESULT([yes])
 	else
 		AC_MSG_RESULT([no])
 		AC_MSG_ERROR([
-			Cannot find required GStreamer-0.10 plugin '$good_element'.
+			Cannot find required GStreamer-0.10 plugin '$1'.
 			It should be part of gst-plugins-good. Please install it.
 		])
 	fi
+	shift;
 done
 
 dnl Check for elements from gst-plugins-bad
+dnl Set plugins which contain below elements
+set -- soundtouch
 for bad_element in pitch
 do
-	AC_MSG_CHECKING([GStreamer 0.10 $bad_element plugin])
+	AC_MSG_CHECKING([GStreamer 0.10 $bad_element element])
 	if $gst010_inspect $bad_element >/dev/null 2>/dev/null; then
 		AC_MSG_RESULT([yes])
 	else
 		AC_MSG_RESULT([no])
 		AC_MSG_ERROR([
-			Cannot find required GStreamer-0.10 plugin '$bad_element'.
+			Cannot find required GStreamer-0.10 plugin '$1'.
 			It should be part of gst-plugins-bad. Please install it.
 		])
 	fi
+	shift;
 done
 
 dnl Check the smclient backend



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]