Do gst_init first, so we can supply debugging options to libgst

Original commit message from CVS:
Do gst_init first, so we can supply debugging options to libgst
This commit is contained in:
Richard Boulton 2001-01-03 22:58:58 +00:00
parent ee33cb2a26
commit f4ae52d0ab
16 changed files with 30 additions and 30 deletions

View file

@ -14,13 +14,13 @@ int main(int argc,char *argv[])
GstElement *disksrc, *audiosink; GstElement *disksrc, *audiosink;
GstElement *pipeline, *thread; GstElement *pipeline, *thread;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
thread = gst_thread_new("main_thread"); thread = gst_thread_new("main_thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -1,2 +1,2 @@
#/usr/bin/sh #/usr/bin/sh
gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! audiosink gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! fakesink

View file

@ -17,13 +17,13 @@ int main(int argc,char *argv[])
GstElement *bin; GstElement *bin;
GstElement *thread; GstElement *thread;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
thread = gst_thread_new("thread"); thread = gst_thread_new("thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -17,13 +17,13 @@ int main(int argc,char *argv[])
GstElement *pipeline; GstElement *pipeline;
GstElement *thread; GstElement *thread;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
thread = gst_thread_new("thread"); thread = gst_thread_new("thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -17,13 +17,13 @@ int main(int argc,char *argv[])
GstElement *bin; GstElement *bin;
GstElement *thread; GstElement *thread;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
thread = gst_thread_new("thread"); thread = gst_thread_new("thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -17,13 +17,13 @@ int main(int argc,char *argv[])
GstElement *bin; GstElement *bin;
GstElement *thread, *thread2; GstElement *thread, *thread2;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
thread = gst_thread_new("thread"); thread = gst_thread_new("thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -18,13 +18,13 @@ int main(int argc,char *argv[])
GstElement *pipeline; GstElement *pipeline;
GstElement *thread; GstElement *thread;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
thread = gst_thread_new("thread"); thread = gst_thread_new("thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -9,13 +9,13 @@ int main(int argc,char *argv[])
GstElement *bin; GstElement *bin;
GstElement *thread, *thread2; GstElement *thread, *thread2;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
//thread = gst_thread_new("thread"); //thread = gst_thread_new("thread");
thread = gst_elementfactory_make("thread", "thread"); thread = gst_elementfactory_make("thread", "thread");

View file

@ -14,13 +14,13 @@ int main(int argc,char *argv[])
GstElement *disksrc, *audiosink; GstElement *disksrc, *audiosink;
GstElement *pipeline, *thread; GstElement *pipeline, *thread;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
thread = gst_thread_new("main_thread"); thread = gst_thread_new("main_thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -1,2 +1,2 @@
#/usr/bin/sh #/usr/bin/sh
gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! audiosink gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! fakesink

View file

@ -17,13 +17,13 @@ int main(int argc,char *argv[])
GstElement *bin; GstElement *bin;
GstElement *thread; GstElement *thread;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
thread = gst_thread_new("thread"); thread = gst_thread_new("thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -17,13 +17,13 @@ int main(int argc,char *argv[])
GstElement *pipeline; GstElement *pipeline;
GstElement *thread; GstElement *thread;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
thread = gst_thread_new("thread"); thread = gst_thread_new("thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -17,13 +17,13 @@ int main(int argc,char *argv[])
GstElement *bin; GstElement *bin;
GstElement *thread; GstElement *thread;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
thread = gst_thread_new("thread"); thread = gst_thread_new("thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -17,13 +17,13 @@ int main(int argc,char *argv[])
GstElement *bin; GstElement *bin;
GstElement *thread, *thread2; GstElement *thread, *thread2;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
thread = gst_thread_new("thread"); thread = gst_thread_new("thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -18,13 +18,13 @@ int main(int argc,char *argv[])
GstElement *pipeline; GstElement *pipeline;
GstElement *thread; GstElement *thread;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
thread = gst_thread_new("thread"); thread = gst_thread_new("thread");
g_assert(thread != NULL); g_assert(thread != NULL);

View file

@ -9,13 +9,13 @@ int main(int argc,char *argv[])
GstElement *bin; GstElement *bin;
GstElement *thread, *thread2; GstElement *thread, *thread2;
gst_init(&argc,&argv);
if (argc != 2) { if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]); g_print("usage: %s <filename>\n", argv[0]);
exit(-1); exit(-1);
} }
gst_init(&argc,&argv);
/* create a new thread to hold the elements */ /* create a new thread to hold the elements */
//thread = gst_thread_new("thread"); //thread = gst_thread_new("thread");
thread = gst_elementfactory_make("thread", "thread"); thread = gst_elementfactory_make("thread", "thread");