From 695afd0edf89656a157ee65a7de537f9989ebb41 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 25 Nov 2005 21:02:16 +0000 Subject: documenting auto*sink using strstr for the video sink lookup, class field is not ordered update other plugins Original commit message from CVS: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-good-plugins-docs.sgml: * docs/plugins/gst-plugins-good-plugins-sections.txt: * gst/autodetect/gstautoaudiosink.c: (gst_auto_audio_sink_base_init): * gst/autodetect/gstautovideosink.c: (gst_auto_video_sink_base_init), (gst_auto_video_sink_factory_filter): documenting auto*sink using strstr for the video sink lookup, class field is not ordered update other plugins --- gst/autodetect/gstautoaudiosink.c | 22 +++++++++++++++++++++- gst/autodetect/gstautovideosink.c | 24 ++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 3 deletions(-) (limited to 'gst/autodetect') diff --git a/gst/autodetect/gstautoaudiosink.c b/gst/autodetect/gstautoaudiosink.c index 3e540822..28892f4f 100644 --- a/gst/autodetect/gstautoaudiosink.c +++ b/gst/autodetect/gstautoaudiosink.c @@ -17,6 +17,26 @@ * Boston, MA 02111-1307, USA. */ +/** + * SECTION:element-autoaudiosink + * @see_also: autovideosink, alsasink, osssink + * + * + * + * autoaudiosink is an audio sink that automatically detects an appropriate + * audio sink to use. It does so by scanning the registry for all elements + * that have Sink and Audio in the class field + * of their element information, and also have a non-zero autoplugging rank. + * + * Example launch line + * + * + * gst-launch -v -m audiotestsrc ! autoaudiosink + * + * + * + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -39,7 +59,7 @@ gst_auto_audio_sink_base_init (gpointer klass) GstElementDetails gst_auto_audio_sink_details = { "Auto audio sink", "Sink/Audio", - "Audio sink embedding the Auto-settings for audio output", + "Wrapper audio sink for automatically detected audio sink", "Ronald Bultje " }; GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", diff --git a/gst/autodetect/gstautovideosink.c b/gst/autodetect/gstautovideosink.c index 0a303770..8859492f 100644 --- a/gst/autodetect/gstautovideosink.c +++ b/gst/autodetect/gstautovideosink.c @@ -17,6 +17,26 @@ * Boston, MA 02111-1307, USA. */ +/** + * SECTION:element-autovideosink + * @see_also: autoaudiosink, ximagesink, xvimagesink, sdlvideosink + * + * + * + * autovideosink is a video sink that automatically detects an appropriate + * video sink to use. It does so by scanning the registry for all elements + * that have Sink and Audio in the class field + * of their element information, and also have a non-zero autoplugging rank. + * + * Example launch line + * + * + * gst-launch -v -m videotestsrc ! autovideosink + * + * + * + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -39,7 +59,7 @@ gst_auto_video_sink_base_init (gpointer klass) GstElementDetails gst_auto_video_sink_details = { "Auto video sink", "Sink/Video", - "Video sink embedding the Auto-settings for video output", + "Wrapper video sink for automatically detected video sink", "Ronald Bultje " }; GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", @@ -108,7 +128,7 @@ gst_auto_video_sink_factory_filter (GstPluginFeature * feature, gpointer data) /* video sinks */ klass = gst_element_factory_get_klass (GST_ELEMENT_FACTORY (feature)); - if (strcmp (klass, "Sink/Video") != 0) + if (!(strstr (klass, "Sink") && strstr (klass, "Video"))) return FALSE; /* only select elements with autoplugging rank */ -- cgit