diff --git a/examples/helloworld2/helloworld2.c b/examples/helloworld2/helloworld2.c index 51e4b77a52..64eed11d79 100644 --- a/examples/helloworld2/helloworld2.c +++ b/examples/helloworld2/helloworld2.c @@ -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 \n", argv[0]); exit(-1); } - gst_init(&argc,&argv); - thread = gst_thread_new("main_thread"); g_assert(thread != NULL); diff --git a/examples/launch/mp3play b/examples/launch/mp3play index c5e8e5f955..591b5885d3 100755 --- a/examples/launch/mp3play +++ b/examples/launch/mp3play @@ -1,2 +1,2 @@ #/usr/bin/sh -gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! audiosink +gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! fakesink diff --git a/examples/queue/queue.c b/examples/queue/queue.c index f220207c69..146c68912c 100644 --- a/examples/queue/queue.c +++ b/examples/queue/queue.c @@ -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 \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); diff --git a/examples/queue2/queue2.c b/examples/queue2/queue2.c index 175802df61..a3662b14e6 100644 --- a/examples/queue2/queue2.c +++ b/examples/queue2/queue2.c @@ -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 \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); diff --git a/examples/queue3/queue3.c b/examples/queue3/queue3.c index e87097870f..237b967dba 100644 --- a/examples/queue3/queue3.c +++ b/examples/queue3/queue3.c @@ -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 \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); diff --git a/examples/queue4/queue4.c b/examples/queue4/queue4.c index 867bbe6ab7..a7e9d6d10d 100644 --- a/examples/queue4/queue4.c +++ b/examples/queue4/queue4.c @@ -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 \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); diff --git a/examples/thread/thread.c b/examples/thread/thread.c index 2bb7582e61..533c38a6f7 100644 --- a/examples/thread/thread.c +++ b/examples/thread/thread.c @@ -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 \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); diff --git a/examples/xml/createxml.c b/examples/xml/createxml.c index 9af7d37557..9f99c77ab4 100644 --- a/examples/xml/createxml.c +++ b/examples/xml/createxml.c @@ -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 \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"); diff --git a/tests/old/examples/helloworld2/helloworld2.c b/tests/old/examples/helloworld2/helloworld2.c index 51e4b77a52..64eed11d79 100644 --- a/tests/old/examples/helloworld2/helloworld2.c +++ b/tests/old/examples/helloworld2/helloworld2.c @@ -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 \n", argv[0]); exit(-1); } - gst_init(&argc,&argv); - thread = gst_thread_new("main_thread"); g_assert(thread != NULL); diff --git a/tests/old/examples/launch/mp3play b/tests/old/examples/launch/mp3play index c5e8e5f955..591b5885d3 100755 --- a/tests/old/examples/launch/mp3play +++ b/tests/old/examples/launch/mp3play @@ -1,2 +1,2 @@ #/usr/bin/sh -gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! audiosink +gstreamer-launch disksrc $1 ! mp3parse ! mpg123 ! fakesink diff --git a/tests/old/examples/queue/queue.c b/tests/old/examples/queue/queue.c index f220207c69..146c68912c 100644 --- a/tests/old/examples/queue/queue.c +++ b/tests/old/examples/queue/queue.c @@ -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 \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); diff --git a/tests/old/examples/queue2/queue2.c b/tests/old/examples/queue2/queue2.c index 175802df61..a3662b14e6 100644 --- a/tests/old/examples/queue2/queue2.c +++ b/tests/old/examples/queue2/queue2.c @@ -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 \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); diff --git a/tests/old/examples/queue3/queue3.c b/tests/old/examples/queue3/queue3.c index e87097870f..237b967dba 100644 --- a/tests/old/examples/queue3/queue3.c +++ b/tests/old/examples/queue3/queue3.c @@ -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 \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); diff --git a/tests/old/examples/queue4/queue4.c b/tests/old/examples/queue4/queue4.c index 867bbe6ab7..a7e9d6d10d 100644 --- a/tests/old/examples/queue4/queue4.c +++ b/tests/old/examples/queue4/queue4.c @@ -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 \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); diff --git a/tests/old/examples/thread/thread.c b/tests/old/examples/thread/thread.c index 2bb7582e61..533c38a6f7 100644 --- a/tests/old/examples/thread/thread.c +++ b/tests/old/examples/thread/thread.c @@ -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 \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); diff --git a/tests/old/examples/xml/createxml.c b/tests/old/examples/xml/createxml.c index 9af7d37557..9f99c77ab4 100644 --- a/tests/old/examples/xml/createxml.c +++ b/tests/old/examples/xml/createxml.c @@ -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 \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");