Do gst_init first, so we can supply debugging options to libgst
authorRichard Boulton <richard@tartarus.org>
Wed, 3 Jan 2001 22:58:58 +0000 (22:58 +0000)
committerRichard Boulton <richard@tartarus.org>
Wed, 3 Jan 2001 22:58:58 +0000 (22:58 +0000)
Original commit message from CVS:
Do gst_init first, so we can supply debugging options to libgst

16 files changed:
examples/helloworld2/helloworld2.c
examples/launch/mp3play
examples/queue/queue.c
examples/queue2/queue2.c
examples/queue3/queue3.c
examples/queue4/queue4.c
examples/thread/thread.c
examples/xml/createxml.c
tests/old/examples/helloworld2/helloworld2.c
tests/old/examples/launch/mp3play
tests/old/examples/queue/queue.c
tests/old/examples/queue2/queue2.c
tests/old/examples/queue3/queue3.c
tests/old/examples/queue4/queue4.c
tests/old/examples/thread/thread.c
tests/old/examples/xml/createxml.c

index 51e4b77..64eed11 100644 (file)
@@ -14,13 +14,13 @@ int main(int argc,char *argv[])
   GstElement *disksrc, *audiosink;
   GstElement *pipeline, *thread;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   thread = gst_thread_new("main_thread");
   g_assert(thread != NULL);
 
index c5e8e5f..591b588 100755 (executable)
@@ -1,2 +1,2 @@
 #/usr/bin/sh
-gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! audiosink
+gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! fakesink
index f220207..146c689 100644 (file)
@@ -17,13 +17,13 @@ int main(int argc,char *argv[])
   GstElement *bin;
   GstElement *thread;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   thread = gst_thread_new("thread");
   g_assert(thread != NULL);
index 175802d..a3662b1 100644 (file)
@@ -17,13 +17,13 @@ int main(int argc,char *argv[])
   GstElement *pipeline;
   GstElement *thread;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   thread = gst_thread_new("thread");
   g_assert(thread != NULL);
index e870978..237b967 100644 (file)
@@ -17,13 +17,13 @@ int main(int argc,char *argv[])
   GstElement *bin;
   GstElement *thread;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   thread = gst_thread_new("thread");
   g_assert(thread != NULL);
index 867bbe6..a7e9d6d 100644 (file)
@@ -17,13 +17,13 @@ int main(int argc,char *argv[])
   GstElement *bin;
   GstElement *thread, *thread2;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   thread = gst_thread_new("thread");
   g_assert(thread != NULL);
index 2bb7582..533c38a 100644 (file)
@@ -18,13 +18,13 @@ int main(int argc,char *argv[])
   GstElement *pipeline;
   GstElement *thread;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   thread = gst_thread_new("thread");
   g_assert(thread != NULL);
index 9af7d37..9f99c77 100644 (file)
@@ -9,13 +9,13 @@ int main(int argc,char *argv[])
   GstElement *bin;
   GstElement *thread, *thread2;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   //thread = gst_thread_new("thread");
   thread = gst_elementfactory_make("thread", "thread");
index 51e4b77..64eed11 100644 (file)
@@ -14,13 +14,13 @@ int main(int argc,char *argv[])
   GstElement *disksrc, *audiosink;
   GstElement *pipeline, *thread;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   thread = gst_thread_new("main_thread");
   g_assert(thread != NULL);
 
index c5e8e5f..591b588 100755 (executable)
@@ -1,2 +1,2 @@
 #/usr/bin/sh
-gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! audiosink
+gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! fakesink
index f220207..146c689 100644 (file)
@@ -17,13 +17,13 @@ int main(int argc,char *argv[])
   GstElement *bin;
   GstElement *thread;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   thread = gst_thread_new("thread");
   g_assert(thread != NULL);
index 175802d..a3662b1 100644 (file)
@@ -17,13 +17,13 @@ int main(int argc,char *argv[])
   GstElement *pipeline;
   GstElement *thread;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   thread = gst_thread_new("thread");
   g_assert(thread != NULL);
index e870978..237b967 100644 (file)
@@ -17,13 +17,13 @@ int main(int argc,char *argv[])
   GstElement *bin;
   GstElement *thread;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   thread = gst_thread_new("thread");
   g_assert(thread != NULL);
index 867bbe6..a7e9d6d 100644 (file)
@@ -17,13 +17,13 @@ int main(int argc,char *argv[])
   GstElement *bin;
   GstElement *thread, *thread2;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   thread = gst_thread_new("thread");
   g_assert(thread != NULL);
index 2bb7582..533c38a 100644 (file)
@@ -18,13 +18,13 @@ int main(int argc,char *argv[])
   GstElement *pipeline;
   GstElement *thread;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   thread = gst_thread_new("thread");
   g_assert(thread != NULL);
index 9af7d37..9f99c77 100644 (file)
@@ -9,13 +9,13 @@ int main(int argc,char *argv[])
   GstElement *bin;
   GstElement *thread, *thread2;
 
+  gst_init(&argc,&argv);
+
   if (argc != 2) {
     g_print("usage: %s <filename>\n", argv[0]);
     exit(-1);
   }
 
-  gst_init(&argc,&argv);
-
   /* create a new thread to hold the elements */
   //thread = gst_thread_new("thread");
   thread = gst_elementfactory_make("thread", "thread");