summaryrefslogtreecommitdiff
path: root/gst/pnm
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-01-22 02:22:56 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-01-22 02:25:44 +0000
commitb2ce6fe6d5b02be7d9e51c8443e4d964eb132b28 (patch)
tree8a1e7753a6708aec0caf60d5b84ae26d47699e61 /gst/pnm
parent4de86d4d12de982aa606736bbc629111e1c00139 (diff)
downloadgstreamer-plugins-bad-b2ce6fe6d5b02be7d9e51c8443e4d964eb132b28.tar.gz
pnm: make element details a bit more descriptive
Diffstat (limited to 'gst/pnm')
-rw-r--r--gst/pnm/gstpnmdec.c9
-rw-r--r--gst/pnm/gstpnmenc.c10
2 files changed, 8 insertions, 11 deletions
diff --git a/gst/pnm/gstpnmdec.c b/gst/pnm/gstpnmdec.c
index 41e6eed69..063d499e8 100644
--- a/gst/pnm/gstpnmdec.c
+++ b/gst/pnm/gstpnmdec.c
@@ -42,10 +42,6 @@
#include <string.h>
-static GstElementDetails pnmdec_details = GST_ELEMENT_DETAILS ("PNM converter",
- "Codec/Decoder/Image", "Decodes PNM format",
- "Lutz Mueller <lutz@users.sourceforge.net>");
-
static GstElementClass *parent_class;
static GstStaticPadTemplate gst_pnmdec_src_pad_template =
@@ -319,7 +315,10 @@ gst_pnmdec_base_init (gpointer g_class)
gst_static_pad_template_get (&gst_pnmdec_sink_pad_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_pnmdec_src_pad_template));
- gst_element_class_set_details (element_class, &pnmdec_details);
+ gst_element_class_set_details_simple (element_class, "PNM image decoder",
+ "Codec/Decoder/Image",
+ "Decodes images in portable pixmap/graymap/bitmap/anymamp (PNM) format",
+ "Lutz Mueller <lutz@users.sourceforge.net>");
}
static void
diff --git a/gst/pnm/gstpnmenc.c b/gst/pnm/gstpnmenc.c
index d05a39519..aa341b7e2 100644
--- a/gst/pnm/gstpnmenc.c
+++ b/gst/pnm/gstpnmenc.c
@@ -51,11 +51,6 @@ enum
/* Add here. */
};
-static GstElementDetails pnmenc_details =
-GST_ELEMENT_DETAILS ("PNM converter", "Codec/Encoder/Image",
- "Encodes in PNM format",
- "Lutz Mueller <lutz@users.sourceforge.net>");
-
static GstStaticPadTemplate sink_pad_template =
GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; "
@@ -242,7 +237,10 @@ gst_pnmenc_base_init (gpointer g_class)
gst_static_pad_template_get (&sink_pad_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_pad_template));
- gst_element_class_set_details (element_class, &pnmenc_details);
+ gst_element_class_set_details_simple (element_class, "PNM image encoder",
+ "Codec/Encoder/Image",
+ "Encodes images into portable pixmap or graymap (PNM) format",
+ "Lutz Mueller <lutz@users.sourceforge.net>");
}
static void