summaryrefslogtreecommitdiff
path: root/sys/acmenc
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-03-18 17:30:26 +0100
committerBenjamin Otte <otte@redhat.com>2010-03-18 22:46:41 +0100
commit775c7584fdad53053ae5b22bb19074cc6022ee98 (patch)
tree149c7daf4efd3ecaf17a179949e20b44347859ab /sys/acmenc
parent5258d372be503da09fa21fbde28afe619bc0cdc1 (diff)
gst_element_class_set_details => gst_element_class_set_details_simple
Diffstat (limited to 'sys/acmenc')
-rw-r--r--sys/acmenc/acmenc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/acmenc/acmenc.c b/sys/acmenc/acmenc.c
index c1da855c4..558cda708 100644
--- a/sys/acmenc/acmenc.c
+++ b/sys/acmenc/acmenc.c
@@ -465,11 +465,11 @@ acmenc_class_init (ACMEncClass * klass)
acmenc_base_init (ACMEncClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- GstElementDetails details;
ACMEncParams *params;
ACMDRIVERDETAILS driverdetails;
- gchar *shortname, *longname;
+ gchar *shortname, *longname, *detail, *description;
MMRESULT res;
+
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&acmenc_sink_template));
gst_element_class_add_pad_template (element_class,
@@ -490,17 +490,17 @@ acmenc_base_init (ACMEncClass * klass)
longname =
g_utf16_to_utf8 ((gunichar2 *) driverdetails.szLongName, -1, NULL, NULL,
NULL);
- details.longname = g_strdup_printf ("ACM Encoder: %s", (shortname
+ detail = g_strdup_printf ("ACM Encoder: %s", (shortname
&& *shortname) ? shortname : params->name);
- details.klass = "Codec/Encoder/Audio";
- details.description = g_strdup_printf ("ACM Encoder: %s", (longname
+ description = g_strdup_printf ("ACM Encoder: %s", (longname
&& *longname) ? longname : params->name);
- details.author = "Pioneers of the Inevitable <songbird@songbirdnest.com>";
- gst_element_class_set_details (element_class, &details);
+ gst_element_class_set_details_simple (element_class, detail,
+ "Codec/Encoder/Audio", description,
+ "Pioneers of the Inevitable <songbird@songbirdnest.com>");
g_free (shortname);
g_free (longname);
- g_free (details.longname);
- g_free (details.description);
+ g_free (description);
+ g_free (detail);
klass->driverId = params->driverId;
}