From 9850bd814fcaba6bd044019ba72d937d12412ff6 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 18 Mar 2010 15:53:14 +0100 Subject: [PATCH] gst_element_class_set_details => gst_element_class_set_details_simple --- ext/a52dec/gsta52dec.c | 13 ++++--------- ext/amrnb/amrnbdec.c | 9 ++++----- ext/amrnb/amrnbenc.c | 9 ++++----- ext/amrwbdec/amrwbdec.c | 9 ++++----- ext/cdio/gstcdiocddasrc.c | 11 ++++------- ext/dvdread/dvdreadsrc.c | 12 ++++-------- ext/lame/gstlame.c | 13 ++++--------- ext/mad/gstmad.c | 13 +++---------- ext/mpeg2dec/gstmpeg2dec.c | 12 ++++-------- gst/ac3parse/gstac3parse.c | 12 ++++-------- gst/asfdemux/gstasfdemux.c | 10 +++------- gst/asfdemux/gstrtpasfdepay.c | 13 +++++-------- gst/asfdemux/gstrtspwms.c | 12 ++++-------- gst/dvdlpcmdec/gstdvdlpcmdec.c | 12 ++++-------- gst/iec958/ac3iec.c | 15 ++++----------- gst/mpegaudioparse/gstmpegaudioparse.c | 15 +++++---------- gst/mpegaudioparse/gstxingmux.c | 11 ++++------- gst/mpegstream/gstdvddemux.c | 14 ++++---------- gst/mpegstream/gstmpegdemux.c | 13 ++++--------- gst/mpegstream/gstmpegparse.c | 13 ++++--------- gst/mpegstream/gstrfc2250enc.c | 13 ++++--------- gst/realmedia/pnmsrc.c | 12 ++++-------- gst/realmedia/rademux.c | 12 ++++-------- gst/realmedia/rdtdepay.c | 13 +++++-------- gst/realmedia/rdtmanager.c | 12 ++++-------- gst/realmedia/rmdemux.c | 12 ++++-------- gst/realmedia/rtspreal.c | 12 ++++-------- gst/synaesthesia/gstsynaesthesia.c | 12 ++++-------- 28 files changed, 113 insertions(+), 226 deletions(-) diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c index 701d7cd..7d032e4 100644 --- a/ext/a52dec/gsta52dec.c +++ b/ext/a52dec/gsta52dec.c @@ -53,14 +53,6 @@ #include #include -/* elementfactory information */ -static GstElementDetails gst_a52dec_details = { - "ATSC A/52 audio decoder", - "Codec/Decoder/Audio", - "Decodes ATSC A/52 encoded audio streams", - "David I. Lehn " -}; - #ifdef LIBA52_DOUBLE #define SAMPLE_WIDTH 64 #else @@ -140,7 +132,10 @@ gst_a52dec_base_init (gpointer g_class) gst_static_pad_template_get (&sink_factory)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&src_factory)); - gst_element_class_set_details (element_class, &gst_a52dec_details); + gst_element_class_set_details_simple (element_class, + "ATSC A/52 audio decoder", "Codec/Decoder/Audio", + "Decodes ATSC A/52 encoded audio streams", + "David I. Lehn "); GST_DEBUG_CATEGORY_INIT (a52dec_debug, "a52dec", 0, "AC3/A52 software decoder"); diff --git a/ext/amrnb/amrnbdec.c b/ext/amrnb/amrnbdec.c index 0bfa27b..1da528d 100644 --- a/ext/amrnb/amrnbdec.c +++ b/ext/amrnb/amrnbdec.c @@ -114,17 +114,16 @@ static void gst_amrnbdec_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - GstElementDetails details = GST_ELEMENT_DETAILS ("AMR-NB audio decoder", - "Codec/Decoder/Audio", - "Adaptive Multi-Rate Narrow-Band audio decoder", - "GStreamer maintainers "); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sink_template)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&src_template)); - gst_element_class_set_details (element_class, &details); + gst_element_class_set_details_simple (element_class, "AMR-NB audio decoder", + "Codec/Decoder/Audio", + "Adaptive Multi-Rate Narrow-Band audio decoder", + "GStreamer maintainers "); } static void diff --git a/ext/amrnb/amrnbenc.c b/ext/amrnb/amrnbenc.c index b817c59..05105a0 100644 --- a/ext/amrnb/amrnbenc.c +++ b/ext/amrnb/amrnbenc.c @@ -156,17 +156,16 @@ static void gst_amrnbenc_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - GstElementDetails details = GST_ELEMENT_DETAILS ("AMR-NB audio encoder", - "Codec/Encoder/Audio", - "Adaptive Multi-Rate Narrow-Band audio encoder", - "Wim Taymans "); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sink_template)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&src_template)); - gst_element_class_set_details (element_class, &details); + gst_element_class_set_details_simple (element_class, "AMR-NB audio encoder", + "Codec/Encoder/Audio", + "Adaptive Multi-Rate Narrow-Band audio encoder", + "Wim Taymans "); } static void diff --git a/ext/amrwbdec/amrwbdec.c b/ext/amrwbdec/amrwbdec.c index 8292bf0..7d63d88 100644 --- a/ext/amrwbdec/amrwbdec.c +++ b/ext/amrwbdec/amrwbdec.c @@ -82,17 +82,16 @@ static void gst_amrwbdec_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - GstElementDetails details = GST_ELEMENT_DETAILS ("AMR-WB audio decoder", - "Codec/Decoder/Audio", - "Adaptive Multi-Rate Wideband audio decoder", - "Renato Araujo "); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sink_template)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&src_template)); - gst_element_class_set_details (element_class, &details); + gst_element_class_set_details_simple (element_class, "AMR-WB audio decoder", + "Codec/Decoder/Audio", + "Adaptive Multi-Rate Wideband audio decoder", + "Renato Araujo "); } static void diff --git a/ext/cdio/gstcdiocddasrc.c b/ext/cdio/gstcdiocddasrc.c index d4a6a54..b23b7d9 100644 --- a/ext/cdio/gstcdiocddasrc.c +++ b/ext/cdio/gstcdiocddasrc.c @@ -94,12 +94,6 @@ enum PROP_READ_SPEED }; -static const GstElementDetails gst_cdio_cdda_src_details = -GST_ELEMENT_DETAILS ("CD audio source (CDDA)", - "Source/File", - "Read audio from CD using libcdio", - "Tim-Philipp Müller "); - GST_BOILERPLATE (GstCdioCddaSrc, gst_cdio_cdda_src, GstCddaBaseSrc, GST_TYPE_CDDA_BASE_SRC); @@ -121,7 +115,10 @@ gst_cdio_cdda_src_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_set_details (element_class, &gst_cdio_cdda_src_details); + gst_element_class_set_details_simple (element_class, "CD audio source (CDDA)", + "Source/File", + "Read audio from CD using libcdio", + "Tim-Philipp Müller "); } static gchar * diff --git a/ext/dvdread/dvdreadsrc.c b/ext/dvdread/dvdreadsrc.c index d9b4567..095dd15 100644 --- a/ext/dvdread/dvdreadsrc.c +++ b/ext/dvdread/dvdreadsrc.c @@ -49,13 +49,6 @@ enum ARG_ANGLE }; -static GstElementDetails gst_dvd_read_src_details = { - "DVD Source", - "Source/File/DVD", - "Access a DVD title/chapter/angle using libdvdread", - "Erik Walthinsen ", -}; - static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, @@ -106,7 +99,10 @@ gst_dvd_read_src_base_init (gpointer g_class) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&srctemplate)); - gst_element_class_set_details (element_class, &gst_dvd_read_src_details); + gst_element_class_set_details_simple (element_class, "DVD Source", + "Source/File/DVD", + "Access a DVD title/chapter/angle using libdvdread", + "Erik Walthinsen "); } static void diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index 9344839..a3b6a80 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -92,14 +92,6 @@ GST_DEBUG_CATEGORY_STATIC (debug); #define GST_CAT_DEFAULT debug -/* elementfactory information */ -static GstElementDetails gst_lame_details = { - "L.A.M.E. mp3 encoder", - "Codec/Encoder/Audio", - "High-quality free MP3 encoder (deprecated)", - "Erik Walthinsen , " "Wim Taymans ", -}; - /* LAME can do MPEG-1, MPEG-2, and MPEG-2.5, so it has 9 possible * sample rates it supports */ static GstStaticPadTemplate gst_lame_sink_template = @@ -394,7 +386,10 @@ gst_lame_base_init (gpointer g_class) gst_static_pad_template_get (&gst_lame_src_template)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_lame_sink_template)); - gst_element_class_set_details (element_class, &gst_lame_details); + gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder", + "Codec/Encoder/Audio", + "High-quality free MP3 encoder (deprecated)", + "Erik Walthinsen , " "Wim Taymans "); } static void diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index 92b825d..02b6985 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -40,15 +40,6 @@ #include "gstmad.h" #include - -/* elementfactory information */ -static const GstElementDetails gst_mad_details = -GST_ELEMENT_DETAILS ("mad mp3 decoder", - "Codec/Decoder/Audio", - "Uses mad code to decode mp3 streams", - "Wim Taymans "); - - enum { ARG_0, @@ -189,7 +180,9 @@ gst_mad_base_init (gpointer g_class) gst_static_pad_template_get (&mad_sink_template_factory)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&mad_src_template_factory)); - gst_element_class_set_details (element_class, &gst_mad_details); + gst_element_class_set_details_simple (element_class, "mad mp3 decoder", + "Codec/Decoder/Audio", + "Uses mad code to decode mp3 streams", "Wim Taymans "); } static void diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c index a3988c2..cb93c5f 100644 --- a/ext/mpeg2dec/gstmpeg2dec.c +++ b/ext/mpeg2dec/gstmpeg2dec.c @@ -45,13 +45,6 @@ typedef gint mpeg2_state_t; GST_DEBUG_CATEGORY_STATIC (mpeg2dec_debug); #define GST_CAT_DEFAULT (mpeg2dec_debug) -/* elementfactory information */ -static const GstElementDetails gst_mpeg2dec_details = -GST_ELEMENT_DETAILS ("mpeg1 and mpeg2 video decoder", - "Codec/Decoder/Video", - "Uses libmpeg2 to decode MPEG video streams", - "Wim Taymans "); - /* Send a warning message about decoding errors after receiving this many * STATE_INVALID return values from mpeg2_parse. -1 means never. */ @@ -174,7 +167,10 @@ gst_mpeg2dec_base_init (gpointer g_class) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&user_data_template_factory)); #endif - gst_element_class_set_details (element_class, &gst_mpeg2dec_details); + gst_element_class_set_details_simple (element_class, + "mpeg1 and mpeg2 video decoder", "Codec/Decoder/Video", + "Uses libmpeg2 to decode MPEG video streams", + "Wim Taymans "); } static void diff --git a/gst/ac3parse/gstac3parse.c b/gst/ac3parse/gstac3parse.c index bd9710d..93922e6 100644 --- a/gst/ac3parse/gstac3parse.c +++ b/gst/ac3parse/gstac3parse.c @@ -75,13 +75,6 @@ static struct frmsize_s frmsizecod_tbl[] = { {640, {1280, 1394, 1920}} }; -/* elementfactory information */ -static const GstElementDetails ac3parse_details = -GST_ELEMENT_DETAILS ("AC3 Parser", - "Codec/Parser/Audio", - "Parses and frames AC3 audio streams, provides seek", - "Erik Walthinsen "); - /* GstAc3Parse signals and args */ enum { @@ -167,7 +160,10 @@ gst_ac3parse_class_init (gpointer g_class) gst_static_pad_template_get (&gst_ac3parse_src_template)); gst_element_class_add_pad_template (gstelement_class, gst_static_pad_template_get (&gst_ac3parse_sink_template)); - gst_element_class_set_details (gstelement_class, &ac3parse_details); + gst_element_class_set_details_simple (gstelement_class, "AC3 Parser", + "Codec/Parser/Audio", + "Parses and frames AC3 audio streams, provides seek", + "Erik Walthinsen "); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SKIP, g_param_spec_int ("skip", "skip", "skip", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */ diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 72d81df..174db45 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -113,12 +113,6 @@ static void gst_asf_demux_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - static GstElementDetails gst_asf_demux_details = { - "ASF Demuxer", - "Codec/Demuxer", - "Demultiplexes ASF Streams", - "Owen Fraser-Green " - }; gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&audio_src_template)); @@ -127,7 +121,9 @@ gst_asf_demux_base_init (gpointer g_class) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_asf_demux_sink_template)); - gst_element_class_set_details (element_class, &gst_asf_demux_details); + gst_element_class_set_details_simple (element_class, "ASF Demuxer", + "Codec/Demuxer", + "Demultiplexes ASF Streams", "Owen Fraser-Green "); } static void diff --git a/gst/asfdemux/gstrtpasfdepay.c b/gst/asfdemux/gstrtpasfdepay.c index 0480234..12240be 100644 --- a/gst/asfdemux/gstrtpasfdepay.c +++ b/gst/asfdemux/gstrtpasfdepay.c @@ -31,13 +31,6 @@ GST_DEBUG_CATEGORY_STATIC (rtpasfdepayload_debug); #define GST_CAT_DEFAULT rtpasfdepayload_debug -static const GstElementDetails rtp_asf_depay_details = -GST_ELEMENT_DETAILS ("RTP ASF packet depayloader", - "Codec/Depayloader/Network", - "Extracts ASF streams from RTP", - "Tim-Philipp Müller , " - "Wim Taymans "); - static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, @@ -80,7 +73,11 @@ gst_rtp_asf_depay_base_init (gpointer klass) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sink_factory)); - gst_element_class_set_details (element_class, &rtp_asf_depay_details); + gst_element_class_set_details_simple (element_class, + "RTP ASF packet depayloader", "Codec/Depayloader/Network", + "Extracts ASF streams from RTP", + "Tim-Philipp Müller , " + "Wim Taymans "); } static void diff --git a/gst/asfdemux/gstrtspwms.c b/gst/asfdemux/gstrtspwms.c index 3b2195e..9ece635 100644 --- a/gst/asfdemux/gstrtspwms.c +++ b/gst/asfdemux/gstrtspwms.c @@ -35,13 +35,6 @@ GST_DEBUG_CATEGORY_STATIC (rtspwms_debug); #define GST_CAT_DEFAULT (rtspwms_debug) -/* elementfactory information */ -static const GstElementDetails rtspwms_details = -GST_ELEMENT_DETAILS ("WMS RTSP Extension", - "Network/Extension/Protocol", - "Extends RTSP so that it can handle WMS setup", - "Wim Taymans "); - #define SERVER_PREFIX "WMServer/" #define HEADER_PREFIX "data:application/vnd.ms.wms-hdr.asfv1;base64," #define EXTENSION_CMD "application/x-wms-extension-cmd" @@ -231,7 +224,10 @@ gst_rtsp_wms_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_set_details (element_class, &rtspwms_details); + gst_element_class_set_details_simple (element_class, "WMS RTSP Extension", + "Network/Extension/Protocol", + "Extends RTSP so that it can handle WMS setup", + "Wim Taymans "); } static void diff --git a/gst/dvdlpcmdec/gstdvdlpcmdec.c b/gst/dvdlpcmdec/gstdvdlpcmdec.c index 832e9f4..8e55073 100644 --- a/gst/dvdlpcmdec/gstdvdlpcmdec.c +++ b/gst/dvdlpcmdec/gstdvdlpcmdec.c @@ -31,13 +31,6 @@ GST_DEBUG_CATEGORY_STATIC (dvdlpcm_debug); #define GST_CAT_DEFAULT dvdlpcm_debug -/* elementfactory information */ -static const GstElementDetails gst_dvdlpcmdec_details = -GST_ELEMENT_DETAILS ("DVD LPCM Audio decoder", - "Codec/Decoder/Audio", - "Decode DVD LPCM frames into standard PCM audio", - "Jan Schmidt \n" "Michael Smith "); - static GstStaticPadTemplate gst_dvdlpcmdec_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, @@ -127,7 +120,10 @@ gst_dvdlpcmdec_base_init (gpointer g_class) gst_static_pad_template_get (&gst_dvdlpcmdec_sink_template)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_dvdlpcmdec_src_template)); - gst_element_class_set_details (element_class, &gst_dvdlpcmdec_details); + gst_element_class_set_details_simple (element_class, "DVD LPCM Audio decoder", + "Codec/Decoder/Audio", + "Decode DVD LPCM frames into standard PCM audio", + "Jan Schmidt , Michael Smith "); } static void diff --git a/gst/iec958/ac3iec.c b/gst/iec958/ac3iec.c index 716a56e..db29133 100644 --- a/gst/iec958/ac3iec.c +++ b/gst/iec958/ac3iec.c @@ -38,16 +38,6 @@ GST_DEBUG_CATEGORY_STATIC (ac3iec_debug); /* The duration of a single IEC958 frame. */ #define IEC958_FRAME_DURATION (32 * GST_MSECOND) - -/* ElementFactory information. */ -static GstElementDetails ac3iec_details = { - "AC3 to IEC958 filter", - "Codec/Muxer/Audio", - "Pads AC3 frames into IEC958 frames suitable for a raw S/PDIF interface", - "Martin Soto " -}; - - /* AC3IEC signals and args */ enum { @@ -141,7 +131,10 @@ ac3iec_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_set_details (element_class, &ac3iec_details); + gst_element_class_set_details_simple (element_class, "AC3 to IEC958 filter", + "Codec/Muxer/Audio", + "Pads AC3 frames into IEC958 frames suitable for a raw S/PDIF interface", + "Martin Soto "); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&ac3iec_sink_template)); gst_element_class_add_pad_template (element_class, diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c index d7a7205..d159f0e 100644 --- a/gst/mpegaudioparse/gstmpegaudioparse.c +++ b/gst/mpegaudioparse/gstmpegaudioparse.c @@ -64,15 +64,6 @@ mpeg_audio_seek_entry_free (MPEGAudioSeekEntry * entry) g_slice_free (MPEGAudioSeekEntry, entry); } -/* elementfactory information */ -static GstElementDetails mp3parse_details = { - "MPEG1 Audio Parser", - "Codec/Parser/Audio", - "Parses and frames mpeg1 audio streams (levels 1-3), provides seek", - "Jan Schmidt \n" - "Erik Walthinsen " -}; - static GstStaticPadTemplate mp3_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, @@ -297,7 +288,11 @@ gst_mp3parse_base_init (gpointer klass) GST_DEBUG_CATEGORY_INIT (mp3parse_debug, "mp3parse", 0, "MPEG Audio Parser"); - gst_element_class_set_details (element_class, &mp3parse_details); + gst_element_class_set_details_simple (element_class, "MPEG1 Audio Parser", + "Codec/Parser/Audio", + "Parses and frames mpeg1 audio streams (levels 1-3), provides seek", + "Jan Schmidt ," + "Erik Walthinsen "); } static void diff --git a/gst/mpegaudioparse/gstxingmux.c b/gst/mpegaudioparse/gstxingmux.c index 9318749..d68d42c 100644 --- a/gst/mpegaudioparse/gstxingmux.c +++ b/gst/mpegaudioparse/gstxingmux.c @@ -390,12 +390,6 @@ gst_xing_mux_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - static const GstElementDetails gst_xing_mux_details = - GST_ELEMENT_DETAILS ("MP3 Xing muxer", - "Formatter/Metadata", - "Adds a Xing header to the beginning of a VBR MP3 file", - "Christophe Fergeau "); - gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_xing_mux_src_template)); gst_element_class_add_pad_template (element_class, @@ -403,7 +397,10 @@ gst_xing_mux_base_init (gpointer g_class) GST_DEBUG_CATEGORY_INIT (xing_mux_debug, "xingmux", 0, "Xing Header Muxer"); - gst_element_class_set_details (element_class, &gst_xing_mux_details); + gst_element_class_set_details_simple (element_class, "MP3 Xing muxer", + "Formatter/Metadata", + "Adds a Xing header to the beginning of a VBR MP3 file", + "Christophe Fergeau "); } static void diff --git a/gst/mpegstream/gstdvddemux.c b/gst/mpegstream/gstdvddemux.c index fa1d4dd..24123d6 100644 --- a/gst/mpegstream/gstdvddemux.c +++ b/gst/mpegstream/gstdvddemux.c @@ -41,15 +41,6 @@ GST_DEBUG_CATEGORY_STATIC (gstdvddemux_debug); #define DEMUX_CLASS(o) GST_MPEG_DEMUX_CLASS (G_OBJECT_GET_CLASS (o)) #define CLASS(o) GST_DVD_DEMUX_CLASS (G_OBJECT_GET_CLASS (o)) - -/* Element factory information */ -static GstElementDetails dvd_demux_details = { - "DVD Demuxer", - "Codec/Demuxer", - "Demultiplexes DVD (VOB) MPEG2 streams", - "Martin Soto " -}; - /* DVDDemux signals and args */ enum { @@ -227,7 +218,10 @@ gst_dvd_demux_base_init (gpointer klass) gst_element_class_add_pad_template (element_class, dvd_demux_class->cur_subpicture_template); - gst_element_class_set_details (element_class, &dvd_demux_details); + gst_element_class_set_details_simple (element_class, "DVD Demuxer", + "Codec/Demuxer", + "Demultiplexes DVD (VOB) MPEG2 streams", + "Martin Soto "); } diff --git a/gst/mpegstream/gstmpegdemux.c b/gst/mpegstream/gstmpegdemux.c index c8d55d8..a19497c 100644 --- a/gst/mpegstream/gstmpegdemux.c +++ b/gst/mpegstream/gstmpegdemux.c @@ -30,14 +30,6 @@ GST_DEBUG_CATEGORY_STATIC (gstmpegdemux_debug); #define PARSE_CLASS(o) GST_MPEG_PARSE_CLASS (G_OBJECT_GET_CLASS (o)) #define CLASS(o) GST_MPEG_DEMUX_CLASS (G_OBJECT_GET_CLASS (o)) -/* elementfactory information */ -static GstElementDetails mpeg_demux_details = { - "MPEG Demuxer", - "Codec/Demuxer", - "Demultiplexes MPEG1 and MPEG2 System Streams", - "Erik Walthinsen \n" "Wim Taymans " -}; - /* MPEG2Demux signals and args */ enum { @@ -169,7 +161,10 @@ gst_mpeg_demux_base_init (gpointer klass_ptr) gst_element_class_add_pad_template (element_class, klass->audio_template); gst_element_class_add_pad_template (element_class, klass->private_template); - gst_element_class_set_details (element_class, &mpeg_demux_details); + gst_element_class_set_details_simple (element_class, "MPEG Demuxer", + "Codec/Demuxer", + "Demultiplexes MPEG1 and MPEG2 System Streams", + "Erik Walthinsen , Wim Taymans "); } static void diff --git a/gst/mpegstream/gstmpegparse.c b/gst/mpegstream/gstmpegparse.c index b1fa70c..37696fa 100644 --- a/gst/mpegstream/gstmpegparse.c +++ b/gst/mpegstream/gstmpegparse.c @@ -41,14 +41,6 @@ GST_DEBUG_CATEGORY_EXTERN (GST_CAT_SEEK); */ #define MP_SCR_RATE_HYST 0.08 -/* elementfactory information */ -static GstElementDetails mpeg_parse_details = { - "MPEG System Parser", - "Codec/Parser", - "Parses MPEG1 and MPEG2 System Streams", - "Erik Walthinsen \n" "Wim Taymans " -}; - #define CLASS(o) GST_MPEG_PARSE_CLASS (G_OBJECT_GET_CLASS (o)) #define DEFAULT_MAX_SCR_GAP 120000 @@ -128,7 +120,10 @@ gst_mpeg_parse_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_set_details (element_class, &mpeg_parse_details); + gst_element_class_set_details_simple (element_class, "MPEG System Parser", + "Codec/Parser", + "Parses MPEG1 and MPEG2 System Streams", + "Erik Walthinsen , Wim Taymans "); } static void diff --git a/gst/mpegstream/gstrfc2250enc.c b/gst/mpegstream/gstrfc2250enc.c index a19fa7e..0f88e85 100644 --- a/gst/mpegstream/gstrfc2250enc.c +++ b/gst/mpegstream/gstrfc2250enc.c @@ -24,14 +24,6 @@ #endif #include "gstrfc2250enc.h" -/* elementfactory information */ -static GstElementDetails rfc2250_enc_details = { - "RFC 2250 packet encoder", - "Codec/Parser", - "transforms MPEG1/2 video to an RFC 2250 compliant format", - "Wim Taymans " -}; - #define CLASS(o) GST_RFC2250_ENC_CLASS (G_OBJECT_GET_CLASS (o)) /* GstRFC2250Enc signals and args */ @@ -112,7 +104,10 @@ gst_rfc2250_enc_base_init (GstRFC2250EncClass * klass) gst_static_pad_template_get (&src_factory)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sink_factory)); - gst_element_class_set_details (element_class, &rfc2250_enc_details); + gst_element_class_set_details_simple (element_class, + "RFC 2250 packet encoder", "Codec/Parser", + "transforms MPEG1/2 video to an RFC 2250 compliant format", + "Wim Taymans "); } static void diff --git a/gst/realmedia/pnmsrc.c b/gst/realmedia/pnmsrc.c index 6b6bef6..d61781b 100644 --- a/gst/realmedia/pnmsrc.c +++ b/gst/realmedia/pnmsrc.c @@ -28,13 +28,6 @@ GST_DEBUG_CATEGORY_STATIC (pnmsrc_debug); #define GST_CAT_DEFAULT pnmsrc_debug -/* elementfactory information */ -static const GstElementDetails gst_pnm_src_details = -GST_ELEMENT_DETAILS ("PNM packet receiver", - "Source/Network", - "Receive data over the network via PNM", - "Wim Taymans "); - /* PNMSrc signals and args */ enum { @@ -95,7 +88,10 @@ gst_pnm_src_base_init (gpointer klass) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_pnm_src_template)); - gst_element_class_set_details (element_class, &gst_pnm_src_details); + gst_element_class_set_details_simple (element_class, "PNM packet receiver", + "Source/Network", + "Receive data over the network via PNM", + "Wim Taymans "); GST_DEBUG_CATEGORY_INIT (pnmsrc_debug, "pnmsrc", 0, "Source for the pnm:// uri"); diff --git a/gst/realmedia/rademux.c b/gst/realmedia/rademux.c index a067c53..4fc135b 100644 --- a/gst/realmedia/rademux.c +++ b/gst/realmedia/rademux.c @@ -47,13 +47,6 @@ #include -static GstElementDetails real_audio_demux_details = { - "RealAudio Demuxer", - "Codec/Demuxer", - "Demultiplex a RealAudio file", - "Tim-Philipp Müller " -}; - static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, @@ -93,7 +86,10 @@ gst_real_audio_demux_base_init (gpointer klass) gst_static_pad_template_get (&sink_template)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&src_template)); - gst_element_class_set_details (element_class, &real_audio_demux_details); + gst_element_class_set_details_simple (element_class, "RealAudio Demuxer", + "Codec/Demuxer", + "Demultiplex a RealAudio file", + "Tim-Philipp Müller "); GST_DEBUG_CATEGORY_INIT (real_audio_demux_debug, "rademux", 0, "Demuxer for RealAudio streams"); diff --git a/gst/realmedia/rdtdepay.c b/gst/realmedia/rdtdepay.c index 76793bc..c3b679f 100644 --- a/gst/realmedia/rdtdepay.c +++ b/gst/realmedia/rdtdepay.c @@ -30,13 +30,6 @@ GST_DEBUG_CATEGORY_STATIC (rdtdepay_debug); #define GST_CAT_DEFAULT rdtdepay_debug -/* elementfactory information */ -static const GstElementDetails gst_rdtdepay_details = -GST_ELEMENT_DETAILS ("RDT packet parser", - "Codec/Depayloader/Network", - "Extracts RealMedia from RDT packets", - "Lutz Mueller , " "Wim Taymans "); - /* RDTDepay signals and args */ enum { @@ -92,7 +85,11 @@ gst_rdt_depay_base_init (gpointer klass) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_rdt_depay_sink_template)); - gst_element_class_set_details (element_class, &gst_rdtdepay_details); + gst_element_class_set_details_simple (element_class, "RDT packet parser", + "Codec/Depayloader/Network", + "Extracts RealMedia from RDT packets", + "Lutz Mueller , " + "Wim Taymans "); GST_DEBUG_CATEGORY_INIT (rdtdepay_debug, "rdtdepay", 0, "Depayloader for RDT RealMedia packets"); diff --git a/gst/realmedia/rdtmanager.c b/gst/realmedia/rdtmanager.c index b00181d..8810915 100644 --- a/gst/realmedia/rdtmanager.c +++ b/gst/realmedia/rdtmanager.c @@ -61,13 +61,6 @@ GST_DEBUG_CATEGORY_STATIC (rdtmanager_debug); #define GST_CAT_DEFAULT (rdtmanager_debug) -/* elementfactory information */ -static const GstElementDetails rdtmanager_details = -GST_ELEMENT_DETAILS ("RTP Decoder", - "Codec/Parser/Network", - "Accepts raw RTP and RTCP packets and sends them forward", - "Wim Taymans "); - /* GstRDTManager signals and args */ enum { @@ -342,7 +335,10 @@ gst_rdt_manager_base_init (gpointer klass) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_rdt_manager_rtcp_src_template)); - gst_element_class_set_details (element_class, &rdtmanager_details); + gst_element_class_set_details_simple (element_class, "RTP Decoder", + "Codec/Parser/Network", + "Accepts raw RTP and RTCP packets and sends them forward", + "Wim Taymans "); } /* BOXED:UINT,UINT */ diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c index 08de6f5..37520a3 100644 --- a/gst/realmedia/rmdemux.c +++ b/gst/realmedia/rmdemux.c @@ -101,13 +101,6 @@ struct _GstRMDemuxIndex GstClockTime timestamp; }; -static GstElementDetails gst_rmdemux_details = { - "RealMedia Demuxer", - "Codec/Demuxer", - "Demultiplex a RealMedia file into audio and video streams", - "David Schleef " -}; - static GstStaticPadTemplate gst_rmdemux_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, @@ -206,7 +199,10 @@ gst_rmdemux_base_init (GstRMDemuxClass * klass) gst_static_pad_template_get (&gst_rmdemux_videosrc_template)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_rmdemux_audiosrc_template)); - gst_element_class_set_details (element_class, &gst_rmdemux_details); + gst_element_class_set_details_simple (element_class, "RealMedia Demuxer", + "Codec/Demuxer", + "Demultiplex a RealMedia file into audio and video streams", + "David Schleef "); } static void diff --git a/gst/realmedia/rtspreal.c b/gst/realmedia/rtspreal.c index 0b32b0c..fb88c00 100644 --- a/gst/realmedia/rtspreal.c +++ b/gst/realmedia/rtspreal.c @@ -44,13 +44,6 @@ GST_DEBUG_CATEGORY_STATIC (rtspreal_debug); #define GST_CAT_DEFAULT (rtspreal_debug) -/* elementfactory information */ -static const GstElementDetails rtspreal_details = -GST_ELEMENT_DETAILS ("RealMedia RTSP Extension", - "Network/Extension/Protocol", - "Extends RTSP so that it can handle RealMedia setup", - "Wim Taymans "); - #define SERVER_PREFIX "RealServer" #define DEFAULT_BANDWIDTH "10485800" @@ -693,7 +686,10 @@ gst_rtsp_real_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_set_details (element_class, &rtspreal_details); + gst_element_class_set_details_simple (element_class, + "RealMedia RTSP Extension", "Network/Extension/Protocol", + "Extends RTSP so that it can handle RealMedia setup", + "Wim Taymans "); } static void diff --git a/gst/synaesthesia/gstsynaesthesia.c b/gst/synaesthesia/gstsynaesthesia.c index a7a76eb..6796569 100644 --- a/gst/synaesthesia/gstsynaesthesia.c +++ b/gst/synaesthesia/gstsynaesthesia.c @@ -38,13 +38,6 @@ #include "gstsynaesthesia.h" -/* elementfactory information */ -static const GstElementDetails gst_synaesthesia_details = -GST_ELEMENT_DETAILS ("Synaesthesia", - "Visualization", - "Creates video visualizations of audio input, using stereo and pitch information", - "Richard Boulton "); - /* signals and args */ enum { @@ -113,7 +106,10 @@ gst_synaesthesia_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_set_details (element_class, &gst_synaesthesia_details); + gst_element_class_set_details_simple (element_class, "Synaesthesia", + "Visualization", + "Creates video visualizations of audio input, using stereo and pitch information", + "Richard Boulton "); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_synaesthesia_src_template)); -- 2.7.4