applemedia: consistently use gst_element_class_set_details_simple

This commit is contained in:
Ole André Vadla Ravnås 2010-11-04 19:11:04 +01:00
parent 5d71ad0d52
commit 445d7502c4
2 changed files with 10 additions and 16 deletions

View file

@ -37,13 +37,6 @@
GST_DEBUG_CATEGORY (gst_avf_video_src_debug); GST_DEBUG_CATEGORY (gst_avf_video_src_debug);
#define GST_CAT_DEFAULT gst_avf_video_src_debug #define GST_CAT_DEFAULT gst_avf_video_src_debug
static const GstElementDetails element_details = {
"AVFVideoSrc",
"Source/Video",
"Stream data from a video capture device through AVFoundation",
"Ole André Vadla Ravnås <oravnas@cisco.com>"
};
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC, GST_PAD_SRC,
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
@ -569,7 +562,11 @@ gst_avf_video_src_base_init (gpointer gclass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass); GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_set_details (element_class, &element_details); gst_element_class_set_details_simple (element_class,
"AVFVideoSrc",
"Source/Video",
"Stream data from a video capture device through AVFoundation",
"Ole André Vadla Ravnås <oravnas@cisco.com>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template)); gst_static_pad_template_get (&src_template));

View file

@ -34,13 +34,6 @@
GST_DEBUG_CATEGORY (gst_qtkit_video_src_debug); GST_DEBUG_CATEGORY (gst_qtkit_video_src_debug);
#define GST_CAT_DEFAULT gst_qtkit_video_src_debug #define GST_CAT_DEFAULT gst_qtkit_video_src_debug
static const GstElementDetails element_details = {
"QTKitVideoSrc",
"Source/Video",
"Stream data from a video capture device through QTKit",
"Ole André Vadla Ravnås <oravnas@cisco.com>"
};
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC, GST_PAD_SRC,
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
@ -484,7 +477,11 @@ gst_qtkit_video_src_base_init (gpointer gclass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass); GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_set_details (element_class, &element_details); gst_element_class_set_details_simple (element_class,
"QTKitVideoSrc",
"Source/Video",
"Stream data from a video capture device through QTKit",
"Ole André Vadla Ravnås <oravnas@cisco.com>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template)); gst_static_pad_template_get (&src_template));