Convert GstSrc's to GstElements.
authorRichard Boulton <richard@tartarus.org>
Sat, 30 Dec 2000 01:53:05 +0000 (01:53 +0000)
committerRichard Boulton <richard@tartarus.org>
Sat, 30 Dec 2000 01:53:05 +0000 (01:53 +0000)
Original commit message from CVS:
Convert GstSrc's to GstElements.

14 files changed:
test/a.c
test/avi2mpg.c
test/aviparse.c
test/mp1parse.c
test/mp1tomp1.c
test/mp2toavi.c
test/mp2tomp1.c
test/mp3.c
test/mp3parse.c
test/mp3play.c
test/mp3tovorbis.c
test/mpeg2parse.c
test/pipetest.c
test/qtest.c

index 6e7aa47..6efa57d 100644 (file)
--- a/test/a.c
+++ b/test/a.c
@@ -1,6 +1,6 @@
 #include <gst/gst.h>
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
   g_print("have eof, quitting\n");
   exit(0);
 }
index be4f4d1..4b2b2a8 100644 (file)
@@ -13,7 +13,7 @@ int fd;
 char *outfile;
 GstElement *mux;
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
   g_print("have eos, quitting\n");
   exit(0);
 }
@@ -123,8 +123,7 @@ void new_pad_created(GstElement *parse,GstPad *pad,GstElement *pipeline) {
 }
 
 int main(int argc,char *argv[]) {
-  GstPipeline *pipeline;
-  GstElement *src, *parse, *fdsink;
+  GstElement *pipeline, *src, *parse, *fdsink;
   GstElementFactory *fdsinkfactory;
 
   g_print("have %d args\n",argc);
index 2fb8c24..a8187d9 100644 (file)
@@ -9,7 +9,7 @@ GstElement *show, *play;
 GstElement *audio_thread, *video_thread;
 GstElement *audio_queue, *video_queue;
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
   g_print("have eos, quitting\n");
   exit(0);
 }
@@ -59,8 +59,7 @@ void new_pad_created(GstElement *parse,GstPad *pad,GstElement *pipeline) {
 }
 
 int main(int argc,char *argv[]) {
-  GstPipeline *pipeline;
-  GstElement *src, *parse;
+  GstElement *pipeline, *src, *parse;
 
   g_print("have %d args\n",argc);
 
index dba5595..d8697d7 100644 (file)
@@ -8,7 +8,7 @@
 extern gboolean _gst_plugin_spew;
 gboolean idle_func(gpointer data);
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
   g_print("have eos, quitting\n");
   exit(0);
 }
@@ -129,8 +129,7 @@ void new_pad_created(GstElement *parse,GstPad *pad,GstElement *pipeline) {
 }
 
 int main(int argc,char *argv[]) {
-  GstPipeline *pipeline;
-  GstElement *src, *parse;
+  GstElement *pipeline, *src, *parse;
 
   g_print("have %d args\n",argc);
 
index 0d63f34..7ae452c 100644 (file)
@@ -8,7 +8,7 @@
 int fd;
 char *outfile;
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
   g_print("have eos, quitting\n");
   exit(0);
 }
@@ -170,8 +170,7 @@ void mp2tomp1(GstElement *parser,GstPad *pad, GstElement *pipeline) {
 }
 
 int main(int argc,char *argv[]) {
-  GstPipeline *pipeline;
-  GstElement *src, *parse, *out;
+  GstElement *pipeline, *src, *parse, *out;
   GstPad *infopad;
   int i,c;
 
index 32b94de..77a627d 100644 (file)
@@ -9,7 +9,7 @@
 GstElement *mux;
 GstElement *merge_subtitles;
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
   g_print("have eos, quitting\n");
   exit(0);
 }
@@ -229,8 +229,7 @@ void mp2tomp1(GstElement *parser,GstPad *pad, GstElement *pipeline) {
 }
 
 int main(int argc,char *argv[]) {
-  GstPipeline *pipeline;
-  GstElement *src, *parse;
+  GstElement *pipeline, *src, *parse;
   GstElement *fdsink;
   GstElementFactory *fdsinkfactory;
   int fd;
index cca6b42..78ce605 100644 (file)
@@ -9,7 +9,7 @@
 GstElement *mux;
 GstElement *merge_subtitles;
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
   g_print("have eos, quitting\n");
   exit(0);
 }
@@ -215,8 +215,7 @@ void mp2tomp1(GstElement *parser,GstPad *pad, GstElement *pipeline) {
 }
 
 int main(int argc,char *argv[]) {
-  GstPipeline *pipeline;
-  GstElement *src, *parse;
+  GstElement *pipeline, *src, *parse;
   GstElement *fdsink;
   GstElementFactory *fdsinkfactory;
   int fd;
index 2b7c696..744bf51 100644 (file)
@@ -5,7 +5,7 @@ extern gboolean _gst_plugin_spew;
 
 static gboolean playing = TRUE;
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
   DEBUG("have EOF\n");
   playing = FALSE;
 }
index d7dddc5..7d3b3f1 100644 (file)
@@ -2,7 +2,7 @@
 
 extern gboolean _gst_plugin_spew;
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
     g_print("have eof, quitting\n");
    exit(0);
 }
@@ -25,7 +25,7 @@ int main(int argc,char *argv[]) {
 // gst_plugin_load("mp3parse");
   gst_plugin_load_all();
 
-  pipeline = gst_pipeline_new("pipeline");
+  pipeline = GST_PIPELINE(gst_pipeline_new("pipeline"));
   g_return_val_if_fail(pipeline != NULL, -1);
 
   srcfactory = gst_elementfactory_find("disksrc");
index fec0983..803da00 100644 (file)
@@ -1,15 +1,14 @@
 #include <gst/gst.h>
 
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
    g_print("have eof, quitting\n");
    exit(0);
 }
 
 int main(int argc,char *argv[]) {
-  GstPipeline *pipeline;
   GstElementFactory *srcfactory, *parsefactory, *decodefactory, *playfactory;
-  GstElement *src, *parse, *decode, *play;
+  GstElement *pipeline, *src, *parse, *decode, *play;
   GstPad *infopad;
 
   g_print("have %d args\n",argc);
index a87692f..f18f6b5 100644 (file)
@@ -4,7 +4,7 @@
 #include <fcntl.h>
 
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
    g_print("have eof, quitting\n");
    exit(0);
 }
index d0fed19..fdbd0af 100644 (file)
@@ -2,7 +2,7 @@
 #include <gnome.h>
 #include <gst/gst.h>
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
   g_print("have eos, quitting\n");
   exit(0);
 }
@@ -185,7 +185,7 @@ int main(int argc,char *argv[]) {
   gst_plugin_load("mpeg2parse");
   //gst_plugin_load("mpeg1parse");
 
-  pipeline = gst_pipeline_new("pipeline");
+  pipeline = GST_PIPELINE(gst_pipeline_new("pipeline"));
   g_return_val_if_fail(pipeline != NULL, -1);
 
   if (strstr(argv[1],"video_ts")) {
index 50fd223..5c77c04 100644 (file)
@@ -5,15 +5,14 @@
 #include <gst/gst.h>
 
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
    g_print("have eof, quitting\n");
    exit(0);
 }
 
 int main(int argc,char *argv[]) {
-  GstPipeline *pipeline;
   GstElementFactory *srcfactory, *pipefactory, *sinkfactory;
-  GstElement *src, *pipe, *sink;
+  GstElement *pipeline, *src, *pipe, *sink;
   int fd;
 
   g_print("have %d args\n",argc);
index 6695830..fb69f5a 100644 (file)
@@ -9,7 +9,7 @@ extern gboolean _gst_plugin_spew;
    don't screw around with state unexpectedly */
 static gboolean playing = TRUE;
 
-void eof(GstSrc *src) {
+void eof(GstElement *src) {
   DEBUG("have EOF\n");
   playing = FALSE;
 }