removing this broken example. holler if you need it.
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 2 Dec 2003 15:56:27 +0000 (15:56 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 2 Dec 2003 15:56:27 +0000 (15:56 +0000)
Original commit message from CVS:
removing this broken example. holler if you need it.

examples/Makefile.am
examples/autoplug/.gitignore [deleted file]
examples/autoplug/Makefile.am [deleted file]
examples/autoplug/autoplug.c [deleted file]
tests/old/examples/Makefile.am
tests/old/examples/autoplug/.gitignore [deleted file]
tests/old/examples/autoplug/Makefile.am [deleted file]
tests/old/examples/autoplug/autoplug.c [deleted file]

index c7d650c..1dfba1b 100644 (file)
@@ -4,8 +4,9 @@ else
 GST_LOADSAVE_DIRS = xml typefind
 endif
 
-SUBDIRS =                              \
+dirs = \
        helloworld                      \
+       helloworld2                     \
        queue                           \
        queue2                          \
        queue3                          \
@@ -17,22 +18,9 @@ SUBDIRS =                            \
        cutter                          \
        pingpong                        \
        manual                          \
-       retag                           \
-       $(GST_LOADSAVE_DIRS)
-
-DIST_SUBDIRS = helloworld              \
-       queue                           \
-       queue2                          \
-       queue3                          \
-       queue4                          \
-       launch                          \
-       thread                          \
-       plugins                         \
-       mixer                           \
-       cutter                          \
-       pingpong                        \
-       manual                          \
-       xml                             \
-       typefind                        \
        retag
 
+SUBDIRS = $(dirs)                      \
+       $(GST_LOADSAVE_DIRS)
+
+DIST_SUBDIRS = $(dirs) xml typefind
diff --git a/examples/autoplug/.gitignore b/examples/autoplug/.gitignore
deleted file mode 100644 (file)
index f76c31a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-autoplug
-xmlTest.gst
diff --git a/examples/autoplug/Makefile.am b/examples/autoplug/Makefile.am
deleted file mode 100644 (file)
index efba8b2..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-noinst_PROGRAMS = autoplug
-
-autoplug_LDADD = $(GST_LIBS)
-autoplug_CFLAGS = $(GST_CFLAGS)
diff --git a/examples/autoplug/autoplug.c b/examples/autoplug/autoplug.c
deleted file mode 100644 (file)
index dc9296d..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-#include <gst/gst.h>
-
-static void
-gst_play_have_type (GstElement *typefind, GstCaps *caps, GstElement *pipeline)
-{
-  GstElement *osssink, *videosink, *videoelement, *colorspace;
-  GstElement *new_element;
-  GstAutoplug *autoplug;
-  GstElement *autobin;
-  GstElement *filesrc;
-  GstElement *cache;
-
-  GST_DEBUG ("GstPipeline: play have type");
-
-  gst_element_set_state (pipeline, GST_STATE_PAUSED);
-
-  filesrc = gst_bin_get_by_name (GST_BIN (pipeline), "disk_source");
-  autobin = gst_bin_get_by_name (GST_BIN (pipeline), "autobin");
-  cache = gst_bin_get_by_name (GST_BIN (autobin), "cache");
-
-  /* unlink the typefind from the pipeline and remove it */
-  gst_element_unlink_pads (cache, "src", typefind, "sink");
-  gst_bin_remove (GST_BIN (autobin), typefind);
-      
-  /* and an audio sink */
-  osssink = gst_element_factory_make ("osssink", "play_audio");
-  g_assert (osssink != NULL);
-
-  videosink = gst_bin_new ("videosink");
-  /* and an video sink */
-  videoelement = gst_element_factory_make ("xvideosink", "play_video");
-  g_assert (videosink != NULL);
-
-  colorspace = gst_element_factory_make ("colorspace", "colorspace");
-  g_assert (colorspace != NULL);
-
-  gst_element_link_pads (colorspace, "src", videoelement, "sink");
-  gst_bin_add (GST_BIN (videosink), colorspace);
-  gst_bin_add (GST_BIN (videosink), videoelement);
-
-  gst_element_add_ghost_pad (videosink, 
-                 gst_element_get_pad (colorspace, "sink"), "sink");
-
-  autoplug = gst_autoplug_factory_make ("staticrender");
-  g_assert (autoplug != NULL);
-
-  new_element = gst_autoplug_to_renderers (autoplug,
-           caps,
-           videosink,
-           osssink,
-           NULL);
-
-  if (!new_element) {
-    g_print ("could not autoplug, no suitable codecs found...\n");
-    exit (-1);
-  }
-
-  gst_element_set_name (new_element, "new_element");
-
-  gst_bin_add (GST_BIN (autobin), new_element);
-
-  g_object_set (G_OBJECT (cache), "reset", TRUE, NULL);
-
-  gst_element_link_pads (cache, "src", new_element, "sink");
-
-  gst_element_set_state (pipeline, GST_STATE_PLAYING);
-      
-#ifndef GST_DISABLE_LOADSAVE
-  gst_xml_write_file (GST_ELEMENT (pipeline), fopen ("xmlTest.gst", "w"));
-#endif
-}
-
-static void
-gst_play_cache_empty (GstElement *element, GstElement *pipeline)
-{
-  GstElement *autobin;
-  GstElement *filesrc;
-  GstElement *cache;
-  GstElement *new_element;
-
-  fprintf (stderr, "have cache empty\n");
-
-  gst_element_set_state (pipeline, GST_STATE_PAUSED);
-
-  filesrc = gst_bin_get_by_name (GST_BIN (pipeline), "disk_source");
-  autobin = gst_bin_get_by_name (GST_BIN (pipeline), "autobin");
-  cache = gst_bin_get_by_name (GST_BIN (autobin), "cache");
-  new_element = gst_bin_get_by_name (GST_BIN (autobin), "new_element");
-
-  gst_element_unlink_many (filesrc, cache, new_element, NULL);
-  gst_bin_remove (GST_BIN (autobin), cache);
-  gst_element_link_pads (filesrc, "src", new_element, "sink");
-
-  gst_element_set_state (pipeline, GST_STATE_PLAYING);
-
-  fprintf (stderr, "done with cache_empty\n");
-}
-
-int main(int argc,char *argv[]) 
-{
-  GstElement *filesrc;
-  GstElement *pipeline;
-  GstElement *autobin;
-  GstElement *typefind;
-  GstElement *cache;
-
-  g_thread_init(NULL);
-  gst_init(&argc,&argv);
-
-  if (argc != 2) {
-    g_print("usage: %s <filename>\n", argv[0]);
-    exit(-1);
-  }
-
-  /* create a new pipeline to hold the elements */
-  pipeline = gst_pipeline_new("pipeline");
-  g_assert(pipeline != NULL);
-
-  /* create a disk reader */
-  filesrc = gst_element_factory_make("filesrc", "disk_source");
-  g_assert(filesrc != NULL);
-  g_object_set(G_OBJECT(filesrc),"location", argv[1],NULL);
-  gst_bin_add (GST_BIN (pipeline), filesrc);
-
-  autobin = gst_bin_new ("autobin");
-  cache = gst_element_factory_make ("autoplugcache", "cache");
-  g_signal_connect (G_OBJECT (cache), "cache_empty", G_CALLBACK (gst_play_cache_empty), pipeline);
-
-  typefind = gst_element_factory_make ("typefind", "typefind");
-  g_signal_connect (G_OBJECT (typefind), "have_type", G_CALLBACK (gst_play_have_type), pipeline);
-  gst_bin_add (GST_BIN (autobin), cache);
-  gst_bin_add (GST_BIN (autobin), typefind);
-
-  gst_element_link_pads (cache, "src", typefind, "sink");
-  gst_element_add_ghost_pad (autobin, gst_element_get_pad (cache, "sink"), "sink");
-
-  gst_bin_add (GST_BIN( pipeline), autobin);
-  gst_element_link_pads (filesrc, "src", autobin, "sink");
-
-  /* start playing */
-  gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
-
-  while (gst_bin_iterate (GST_BIN (pipeline)));
-
-  /* stop the pipeline */
-  gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
-
-  gst_object_unref (GST_OBJECT (pipeline));
-
-  exit(0);
-}
-
index c7d650c..1dfba1b 100644 (file)
@@ -4,8 +4,9 @@ else
 GST_LOADSAVE_DIRS = xml typefind
 endif
 
-SUBDIRS =                              \
+dirs = \
        helloworld                      \
+       helloworld2                     \
        queue                           \
        queue2                          \
        queue3                          \
@@ -17,22 +18,9 @@ SUBDIRS =                            \
        cutter                          \
        pingpong                        \
        manual                          \
-       retag                           \
-       $(GST_LOADSAVE_DIRS)
-
-DIST_SUBDIRS = helloworld              \
-       queue                           \
-       queue2                          \
-       queue3                          \
-       queue4                          \
-       launch                          \
-       thread                          \
-       plugins                         \
-       mixer                           \
-       cutter                          \
-       pingpong                        \
-       manual                          \
-       xml                             \
-       typefind                        \
        retag
 
+SUBDIRS = $(dirs)                      \
+       $(GST_LOADSAVE_DIRS)
+
+DIST_SUBDIRS = $(dirs) xml typefind
diff --git a/tests/old/examples/autoplug/.gitignore b/tests/old/examples/autoplug/.gitignore
deleted file mode 100644 (file)
index f76c31a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-autoplug
-xmlTest.gst
diff --git a/tests/old/examples/autoplug/Makefile.am b/tests/old/examples/autoplug/Makefile.am
deleted file mode 100644 (file)
index efba8b2..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-noinst_PROGRAMS = autoplug
-
-autoplug_LDADD = $(GST_LIBS)
-autoplug_CFLAGS = $(GST_CFLAGS)
diff --git a/tests/old/examples/autoplug/autoplug.c b/tests/old/examples/autoplug/autoplug.c
deleted file mode 100644 (file)
index dc9296d..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-#include <gst/gst.h>
-
-static void
-gst_play_have_type (GstElement *typefind, GstCaps *caps, GstElement *pipeline)
-{
-  GstElement *osssink, *videosink, *videoelement, *colorspace;
-  GstElement *new_element;
-  GstAutoplug *autoplug;
-  GstElement *autobin;
-  GstElement *filesrc;
-  GstElement *cache;
-
-  GST_DEBUG ("GstPipeline: play have type");
-
-  gst_element_set_state (pipeline, GST_STATE_PAUSED);
-
-  filesrc = gst_bin_get_by_name (GST_BIN (pipeline), "disk_source");
-  autobin = gst_bin_get_by_name (GST_BIN (pipeline), "autobin");
-  cache = gst_bin_get_by_name (GST_BIN (autobin), "cache");
-
-  /* unlink the typefind from the pipeline and remove it */
-  gst_element_unlink_pads (cache, "src", typefind, "sink");
-  gst_bin_remove (GST_BIN (autobin), typefind);
-      
-  /* and an audio sink */
-  osssink = gst_element_factory_make ("osssink", "play_audio");
-  g_assert (osssink != NULL);
-
-  videosink = gst_bin_new ("videosink");
-  /* and an video sink */
-  videoelement = gst_element_factory_make ("xvideosink", "play_video");
-  g_assert (videosink != NULL);
-
-  colorspace = gst_element_factory_make ("colorspace", "colorspace");
-  g_assert (colorspace != NULL);
-
-  gst_element_link_pads (colorspace, "src", videoelement, "sink");
-  gst_bin_add (GST_BIN (videosink), colorspace);
-  gst_bin_add (GST_BIN (videosink), videoelement);
-
-  gst_element_add_ghost_pad (videosink, 
-                 gst_element_get_pad (colorspace, "sink"), "sink");
-
-  autoplug = gst_autoplug_factory_make ("staticrender");
-  g_assert (autoplug != NULL);
-
-  new_element = gst_autoplug_to_renderers (autoplug,
-           caps,
-           videosink,
-           osssink,
-           NULL);
-
-  if (!new_element) {
-    g_print ("could not autoplug, no suitable codecs found...\n");
-    exit (-1);
-  }
-
-  gst_element_set_name (new_element, "new_element");
-
-  gst_bin_add (GST_BIN (autobin), new_element);
-
-  g_object_set (G_OBJECT (cache), "reset", TRUE, NULL);
-
-  gst_element_link_pads (cache, "src", new_element, "sink");
-
-  gst_element_set_state (pipeline, GST_STATE_PLAYING);
-      
-#ifndef GST_DISABLE_LOADSAVE
-  gst_xml_write_file (GST_ELEMENT (pipeline), fopen ("xmlTest.gst", "w"));
-#endif
-}
-
-static void
-gst_play_cache_empty (GstElement *element, GstElement *pipeline)
-{
-  GstElement *autobin;
-  GstElement *filesrc;
-  GstElement *cache;
-  GstElement *new_element;
-
-  fprintf (stderr, "have cache empty\n");
-
-  gst_element_set_state (pipeline, GST_STATE_PAUSED);
-
-  filesrc = gst_bin_get_by_name (GST_BIN (pipeline), "disk_source");
-  autobin = gst_bin_get_by_name (GST_BIN (pipeline), "autobin");
-  cache = gst_bin_get_by_name (GST_BIN (autobin), "cache");
-  new_element = gst_bin_get_by_name (GST_BIN (autobin), "new_element");
-
-  gst_element_unlink_many (filesrc, cache, new_element, NULL);
-  gst_bin_remove (GST_BIN (autobin), cache);
-  gst_element_link_pads (filesrc, "src", new_element, "sink");
-
-  gst_element_set_state (pipeline, GST_STATE_PLAYING);
-
-  fprintf (stderr, "done with cache_empty\n");
-}
-
-int main(int argc,char *argv[]) 
-{
-  GstElement *filesrc;
-  GstElement *pipeline;
-  GstElement *autobin;
-  GstElement *typefind;
-  GstElement *cache;
-
-  g_thread_init(NULL);
-  gst_init(&argc,&argv);
-
-  if (argc != 2) {
-    g_print("usage: %s <filename>\n", argv[0]);
-    exit(-1);
-  }
-
-  /* create a new pipeline to hold the elements */
-  pipeline = gst_pipeline_new("pipeline");
-  g_assert(pipeline != NULL);
-
-  /* create a disk reader */
-  filesrc = gst_element_factory_make("filesrc", "disk_source");
-  g_assert(filesrc != NULL);
-  g_object_set(G_OBJECT(filesrc),"location", argv[1],NULL);
-  gst_bin_add (GST_BIN (pipeline), filesrc);
-
-  autobin = gst_bin_new ("autobin");
-  cache = gst_element_factory_make ("autoplugcache", "cache");
-  g_signal_connect (G_OBJECT (cache), "cache_empty", G_CALLBACK (gst_play_cache_empty), pipeline);
-
-  typefind = gst_element_factory_make ("typefind", "typefind");
-  g_signal_connect (G_OBJECT (typefind), "have_type", G_CALLBACK (gst_play_have_type), pipeline);
-  gst_bin_add (GST_BIN (autobin), cache);
-  gst_bin_add (GST_BIN (autobin), typefind);
-
-  gst_element_link_pads (cache, "src", typefind, "sink");
-  gst_element_add_ghost_pad (autobin, gst_element_get_pad (cache, "sink"), "sink");
-
-  gst_bin_add (GST_BIN( pipeline), autobin);
-  gst_element_link_pads (filesrc, "src", autobin, "sink");
-
-  /* start playing */
-  gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
-
-  while (gst_bin_iterate (GST_BIN (pipeline)));
-
-  /* stop the pipeline */
-  gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
-
-  gst_object_unref (GST_OBJECT (pipeline));
-
-  exit(0);
-}
-