Remove the test plugin
authorMurray Cumming <murrayc@murrayc.com>
Mon, 22 Oct 2012 08:38:01 +0000 (10:38 +0200)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 22 Oct 2012 10:42:50 +0000 (12:42 +0200)
Because the new example plugins are better examples.

configure.ac
src/plugins/Makefile.am
src/plugins/test/Makefile.am [deleted file]
src/plugins/test/rygel-test-audio-item.vala [deleted file]
src/plugins/test/rygel-test-plugin.vala [deleted file]
src/plugins/test/rygel-test-root-container.vala [deleted file]
src/plugins/test/rygel-test-video-item.vala [deleted file]

index 5c5db75..806e91b 100644 (file)
@@ -93,7 +93,6 @@ RYGEL_ADD_PLUGIN([tracker],[Tracker],[yes])
 
 AS_IF([test "x$with_media_engine" = "xgstreamer"],
       [
-        RYGEL_ADD_PLUGIN([test],[Test],[no])
         RYGEL_ADD_PLUGIN([playbin],[GStreamer playbin],[yes])
         RYGEL_ADD_PLUGIN([media-export],[MediaExport],[yes])
         RYGEL_ADD_PLUGIN([gst-launch],[GStreamer launchline],[no])
@@ -101,7 +100,6 @@ AS_IF([test "x$with_media_engine" = "xgstreamer"],
         RYGEL_ADD_STAMP([src/librygel-renderer-gst/librygel_renderer_gst_2_0_la_vala.stamp])
       ],
       [
-        RYGEL_DISABLE_PLUGIN([test])
         RYGEL_DISABLE_PLUGIN([playbin])
         RYGEL_DISABLE_PLUGIN([media-export])
         RYGEL_DISABLE_PLUGIN([gst-launch])
index 747d837..3c1365c 100644 (file)
@@ -1,7 +1,3 @@
-if BUILD_TEST_PLUGIN
-TEST_PLUGIN = test
-endif
-
 if BUILD_TRACKER_PLUGIN
 TRACKER_PLUGIN = tracker
 endif
@@ -30,8 +26,7 @@ if BUILD_PLAYBIN_PLUGIN
 PLAYBIN = playbin
 endif
 
-SUBDIRS = $(TEST_PLUGIN) \
-         $(TRACKER_PLUGIN) \
+SUBDIRS = $(TRACKER_PLUGIN) \
          $(MEDIATHEK_PLUGIN) \
          $(MEDIA_EXPORT_PLUGIN) \
          $(EXTERNAL_PLUGIN) \
diff --git a/src/plugins/test/Makefile.am b/src/plugins/test/Makefile.am
deleted file mode 100644 (file)
index 7b13f38..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-include $(top_srcdir)/common.am
-
-plugin_LTLIBRARIES = librygel-test.la
-
-AM_CFLAGS += -DG_LOG_DOMAIN='"Test"' \
-       -I$(top_srcdir)/src/media-engines/gstreamer \
-       $(LIBGSTREAMER_CFLAGS)
-
-librygel_test_la_SOURCES = \
-       rygel-test-root-container.vala \
-       rygel-test-audio-item.vala \
-       rygel-test-video-item.vala \
-       rygel-test-plugin.vala \
-       $(top_srcdir)/src/media-engines/gstreamer/rygel-media-engine-gst.vapi
-
-librygel_test_la_VALAFLAGS = \
-       --pkg gstreamer-0.10 \
-       $(RYGEL_COMMON_SERVER_PLUGIN_VALAFLAGS)
-
-librygel_test_la_LIBADD = \
-       $(LIBGSTREAMER_LIBS) \
-       $(RYGEL_COMMON_SERVER_LIBS)
-librygel_test_la_LDFLAGS = $(RYGEL_PLUGIN_LINKER_FLAGS)
diff --git a/src/plugins/test/rygel-test-audio-item.vala b/src/plugins/test/rygel-test-audio-item.vala
deleted file mode 100644 (file)
index dbd2c46..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
- * Copyright (C) 2008 Nokia Corporation.
- * Copyright (C) 2012 Intel Corporation.
- *
- * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
- *                               <zeeshan.ali@nokia.com>
- *         Jens Georg <jensg@openismus.com>
- *
- * This file is part of Rygel.
- *
- * Rygel is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Rygel 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-using Gst;
-
-/**
- * Represents Test audio item.
- */
-public class Rygel.Test.AudioItem : Rygel.AudioItem {
-    private const string TEST_MIMETYPE = "audio/x-wav";
-    private const string PIPELINE = "audiotestsrc is-live=1 ! wavenc";
-
-    public AudioItem (string id, MediaContainer parent, string title) {
-        base (id, parent, title);
-
-        this.mime_type = TEST_MIMETYPE;
-    }
-
-    public override DataSource? create_stream_source (string? host_ip) {
-        var engine = MediaEngine.get_default ();
-        var gst_engine = engine as GstMediaEngine;
-        if (gst_engine == null) {
-            warning ("The current media engine is not based on GStreamer.");
-
-            return null;
-        }
-
-        try {
-            var element = parse_bin_from_description (PIPELINE, true);
-
-            return gst_engine.create_data_source_from_element (element);
-        } catch (Error err) {
-            warning ("Required plugin missing (%s)", err.message);
-
-            return null;
-        }
-    }
-}
-
diff --git a/src/plugins/test/rygel-test-plugin.vala b/src/plugins/test/rygel-test-plugin.vala
deleted file mode 100644 (file)
index 7a30451..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
- * Copyright (C) 2008 Nokia Corporation.
- *
- * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
- *                               <zeeshan.ali@nokia.com>
- *
- * This file is part of Rygel.
- *
- * Rygel is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Rygel 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-using Rygel;
-using Gee;
-
-public void module_init (PluginLoader loader) {
-    if (loader.plugin_disabled (Rygel.Test.Plugin.NAME)) {
-        message ("Plugin '%s' disabled by user, ignoring..",
-                 Rygel.Test.Plugin.NAME);
-
-        return;
-    }
-
-    var plugin = new Rygel.Test.Plugin ();
-
-    loader.add_plugin (plugin);
-}
-
-public class Rygel.Test.Plugin : Rygel.MediaServerPlugin {
-    public const string NAME = "Test";
-
-    public Plugin () {
-        var root_container = new RootContainer ("Test Streams");
-
-        base (root_container, Plugin.NAME);
-    }
-}
diff --git a/src/plugins/test/rygel-test-root-container.vala b/src/plugins/test/rygel-test-root-container.vala
deleted file mode 100644 (file)
index abe878e..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
- * Copyright (C) 2008 Nokia Corporation.
- *
- * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
- *                               <zeeshan.ali@nokia.com>
- *
- * This file is part of Rygel.
- *
- * Rygel is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Rygel 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-using GUPnP;
-using Gee;
-using Gst;
-
-/**
- * Represents the root container for Test media content hierarchy.
- */
-public class Rygel.Test.RootContainer : Rygel.SimpleContainer {
-    public RootContainer (string title) {
-        base.root (title);
-
-        this.add_child_item (new AudioItem ("sinewave", this, "Sine Wave"));
-        this.add_child_item (new VideoItem ("smtpe", this, "SMTPE"));
-    }
-}
-
diff --git a/src/plugins/test/rygel-test-video-item.vala b/src/plugins/test/rygel-test-video-item.vala
deleted file mode 100644 (file)
index 04cb6bd..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
- * Copyright (C) 2008 Nokia Corporation.
- * Copyright (C) 2012 Intel Corporation.
- *
- * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
- *                               <zeeshan.ali@nokia.com>
- *         Jens Georg <jensg@openismus.com>
- *
- * This file is part of Rygel.
- *
- * Rygel is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Rygel 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-using Gst;
-
-/**
- * Represents Test video item.
- */
-public class Rygel.Test.VideoItem : Rygel.VideoItem {
-    private const string TEST_MIMETYPE = "video/mpeg";
-    private const string PIPELINE = "videotestsrc is-live=1 ! " +
-                                    "ffenc_mpeg2video ! " +
-                                    "mpegtsmux";
-
-    public VideoItem (string id, MediaContainer parent, string title) {
-        base (id, parent, title);
-
-        this.mime_type = TEST_MIMETYPE;
-    }
-
-    public override DataSource? create_stream_source (string? host_ip) {
-        var engine = MediaEngine.get_default ();
-        var gst_engine = engine as GstMediaEngine;
-        if (gst_engine == null) {
-            warning ("The current media engine is not based on GStreamer.");
-
-            return null;
-        }
-
-        try {
-            var element =  parse_bin_from_description (PIPELINE, true);
-
-            return gst_engine.create_data_source_from_element (element);
-        } catch (Error err) {
-            warning ("Required plugin missing (%s)", err.message);
-
-            return null;
-        }
-    }
-}
-