Commit a002e0f1 authored by Benjamin Otte's avatar Benjamin Otte

gst_element_class_set_details => gst_element_class_set_details_simple

parent 47063257
...@@ -45,15 +45,6 @@ ...@@ -45,15 +45,6 @@
#include <gst/audio/gstaudiofilter.h> #include <gst/audio/gstaudiofilter.h>
#include <gst/controller/gstcontroller.h> #include <gst/controller/gstcontroller.h>
/* elementfactory information */
static const GstElementDetails stereo_details =
GST_ELEMENT_DETAILS ("Stereo effect",
"Filter/Effect/Audio",
"Muck with the stereo signal to enhance its 'stereo-ness'",
"Erik Walthinsen <omega@cse.ogi.edu>");
#define ALLOWED_CAPS \ #define ALLOWED_CAPS \
"audio/x-raw-int," \ "audio/x-raw-int," \
" depth = (int) 16, " \ " depth = (int) 16, " \
...@@ -95,7 +86,10 @@ gst_stereo_base_init (gpointer g_class) ...@@ -95,7 +86,10 @@ gst_stereo_base_init (gpointer g_class)
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
GstCaps *caps; GstCaps *caps;
gst_element_class_set_details (element_class, &stereo_details); gst_element_class_set_details_simple (element_class, "Stereo effect",
"Filter/Effect/Audio",
"Muck with the stereo signal to enhance its 'stereo-ness'",
"Erik Walthinsen <omega@cse.ogi.edu>");
caps = gst_caps_from_string (ALLOWED_CAPS); caps = gst_caps_from_string (ALLOWED_CAPS);
gst_audio_filter_class_add_pad_templates (GST_AUDIO_FILTER_CLASS (g_class), gst_audio_filter_class_add_pad_templates (GST_AUDIO_FILTER_CLASS (g_class),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment