[aravis] gst: add a pipeline launch script.



commit 6b64f43ddd24594e3603f77b8fbfca32d40d47d8
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Tue Apr 27 17:37:09 2010 +0200

    gst: add a pipeline launch script.
    
    It should be enough to replace gst-aravis-test.

 configure.ac             |    1 +
 gst/.gitignore           |    1 +
 gst/gst-aravis-launch.in |   12 ++++++++++++
 3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2556541..8efcbe4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,6 +88,7 @@ gst/Makefile
 po/Makefile.in
 aravis.pc
 ])
+AC_CONFIG_FILES([gst/gst-aravis-launch], [chmod +x gst/gst-aravis-launch])
 AC_OUTPUT
 
 echo ""
diff --git a/gst/.gitignore b/gst/.gitignore
index 513fd7e..0aa8869 100644
--- a/gst/.gitignore
+++ b/gst/.gitignore
@@ -1 +1,2 @@
 gst-aravis-test
+gst-aravis-launch
diff --git a/gst/gst-aravis-launch.in b/gst/gst-aravis-launch.in
new file mode 100644
index 0000000..947bd9f
--- /dev/null
+++ b/gst/gst-aravis-launch.in
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+prefix= prefix@
+exec_prefix= prefix@
+
+if [ -a @bindir@/gst-launch]
+then
+	LD_PRELOAD= top_srcdir@/src/.libs/libaravis.so @bindir@/gst-launch --gst-plugin-load= top_srcdir@/gst/.libs/libgstaravis.so -v $*
+else
+	LD_PRELOAD= top_srcdir@/src/.libs/libaravis.so gst-launch --gst-plugin-load= top_srcdir@/gst/.libs/libgstaravis.so -v $*
+fi
+



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