mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
shm: Use gst_element_class_set_details_simple
This commit is contained in:
parent
21686e3077
commit
457b5d8ab7
2 changed files with 10 additions and 15 deletions
|
@ -62,12 +62,6 @@ struct GstShmClient
|
|||
GST_DEBUG_CATEGORY_STATIC (shmsink_debug);
|
||||
#define GST_CAT_DEFAULT shmsink_debug
|
||||
|
||||
static const GstElementDetails gst_shm_sink_details =
|
||||
GST_ELEMENT_DETAILS ("Shared Memory Sink",
|
||||
"Sink",
|
||||
"Send data over shared memory to the matching source",
|
||||
"Olivier Crete <olivier.crete@collabora.co.uk>");
|
||||
|
||||
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
|
@ -103,10 +97,13 @@ gst_shm_sink_base_init (gpointer g_class)
|
|||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sinktemplate));
|
||||
|
||||
gst_element_class_set_details (element_class, &gst_shm_sink_details);
|
||||
gst_element_class_set_details_simple (element_class,
|
||||
"Shared Memory Sink",
|
||||
"Sink",
|
||||
"Send data over shared memory to the matching source",
|
||||
"Olivier Crete <olivier.crete@collabora.co.uk>");
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gst_shm_sink_init (GstShmSink * self, GstShmSinkClass * g_class)
|
||||
{
|
||||
|
|
|
@ -53,12 +53,6 @@ struct GstShmBuffer
|
|||
GST_DEBUG_CATEGORY_STATIC (shmsrc_debug);
|
||||
#define GST_CAT_DEFAULT shmsrc_debug
|
||||
|
||||
static const GstElementDetails gst_shm_src_details =
|
||||
GST_ELEMENT_DETAILS ("Shared Memory Source",
|
||||
"Source",
|
||||
"Receive data from the sharem memory sink",
|
||||
"Olivier Crete <olivier.crete@collabora.co.uk");
|
||||
|
||||
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
|
@ -91,7 +85,11 @@ gst_shm_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_shm_src_details);
|
||||
gst_element_class_set_details_simple (element_class,
|
||||
"Shared Memory Source",
|
||||
"Source",
|
||||
"Receive data from the sharem memory sink",
|
||||
"Olivier Crete <olivier.crete@collabora.co.uk");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue