diff --git a/gst/pnm/gstpnmdec.c b/gst/pnm/gstpnmdec.c index 41e6eed691..063d499e81 100644 --- a/gst/pnm/gstpnmdec.c +++ b/gst/pnm/gstpnmdec.c @@ -42,10 +42,6 @@ #include -static GstElementDetails pnmdec_details = GST_ELEMENT_DETAILS ("PNM converter", - "Codec/Decoder/Image", "Decodes PNM format", - "Lutz Mueller "); - 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 "); } static void diff --git a/gst/pnm/gstpnmenc.c b/gst/pnm/gstpnmenc.c index d05a395199..aa341b7e25 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 "); - 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 "); } static void