pulse example: Remove
authorOlivier Crête <olivier.crete@collabora.com>
Tue, 14 Mar 2017 20:42:25 +0000 (16:42 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Tue, 14 Mar 2017 20:42:25 +0000 (16:42 -0400)
That example only tested the property probe interface, which has been removed.
The same kind of thing can now be done with the generic gst-device-monitor tool.

Makefile.am
configure.ac
tests/examples/Makefile.am
tests/examples/pulse/.gitignore [deleted file]
tests/examples/pulse/Makefile.am [deleted file]
tests/examples/pulse/pulse.c [deleted file]

index c88d1bf..cdffccb 100644 (file)
@@ -72,7 +72,8 @@ CRUFT_DIRS = \
        $(top_srcdir)/gst/median \
        $(top_srcdir)/gst/qtdemux \
        $(top_srcdir)/gst/quicktime \
-       $(top_srcdir)/ext/annodex
+       $(top_srcdir)/ext/annodex \
+       $(top_srcdir)/tests/examples/pulse
 
 include $(top_srcdir)/common/cruft.mak
 
index 005a18b..964aa02 100644 (file)
@@ -1070,7 +1070,6 @@ tests/examples/cairo/Makefile
 tests/examples/equalizer/Makefile
 tests/examples/jack/Makefile
 tests/examples/level/Makefile
-tests/examples/pulse/Makefile
 tests/examples/rtp/Makefile
 tests/examples/shapewipe/Makefile
 tests/examples/spectrum/Makefile
index b613a64..7c10d02 100644 (file)
@@ -10,10 +10,10 @@ else
 CAIRO_DIR=
 endif
 
-SUBDIRS = audiofx equalizer $(JACK_DIR) level pulse \
+SUBDIRS = audiofx equalizer $(JACK_DIR) level \
        rtp shapewipe spectrum v4l2 $(CAIRO_DIR)
 
-DIST_SUBDIRS = audiofx equalizer jack level pulse \
+DIST_SUBDIRS = audiofx equalizer jack level \
        rtp shapewipe spectrum v4l2 cairo
 
 include $(top_srcdir)/common/parallel-subdirs.mak
diff --git a/tests/examples/pulse/.gitignore b/tests/examples/pulse/.gitignore
deleted file mode 100644 (file)
index 5f7ce5e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-pulse
diff --git a/tests/examples/pulse/Makefile.am b/tests/examples/pulse/Makefile.am
deleted file mode 100644 (file)
index 48968cb..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-noinst_PROGRAMS = pulse
-pulse_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
-pulse_LDADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS)
-
-
diff --git a/tests/examples/pulse/pulse.c b/tests/examples/pulse/pulse.c
deleted file mode 100644 (file)
index 835244a..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/* GStreamer
- * Copyright (C) 2010 Wim Taymans <wim.taymans at gmail.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-/* FIXME 0.11: suppress warnings for deprecated API such as GValueArray
- * with newer GLib versions (>= 2.31.0) */
-#define GLIB_DISABLE_DEPRECATION_WARNINGS
-
-#include <gst/gst.h>
-
-#if 0
-#include <gst/interfaces/propertyprobe.h>
-
-static void
-test_element (const gchar * name)
-{
-  GstElement *element;
-  GstPropertyProbe *probe = NULL;
-  const GParamSpec *pspec = NULL;
-  GValueArray *array = NULL;
-  guint i;
-
-  g_print ("testing element %s\n", name);
-  element = gst_element_factory_make (name, NULL);
-  g_assert (element);
-
-  gst_element_set_state (element, GST_STATE_READY);
-  probe = GST_PROPERTY_PROBE (element);
-  pspec = gst_property_probe_get_property (probe, "device");
-
-  array = gst_property_probe_probe_and_get_values (probe, pspec);
-  g_assert (array);
-
-  for (i = 0; i < array->n_values; i++) {
-    GValue *device = NULL;
-    gchar *name = NULL;
-
-    device = g_value_array_get_nth (array, i);
-    g_object_set_property (G_OBJECT (element), "device", device);
-    g_object_get (G_OBJECT (element), "device-name", &name, NULL);
-
-    g_print ("device: %s (%s)\n", g_value_get_string (device),
-        GST_STR_NULL (name));
-  }
-  g_value_array_free (array);
-
-  gst_element_set_state (element, GST_STATE_NULL);
-  gst_object_unref (GST_OBJECT (element));
-}
-#endif
-
-int
-main (int argc, char *argv[])
-{
-  gst_init (&argc, &argv);
-
-#if 0
-  test_element ("pulsesink");
-  test_element ("pulsesrc");
-#endif
-
-  return 0;
-}