[Gstreamer-openmax] [PATCH] replace deprecated API

Rob Clark rob at ti.com
Sun Apr 18 21:32:58 PDT 2010


gst_element_class_set_details() is now deprecated.  Replace with gst_element_class_set_details_simple() instead.
---
 omx/gstomx_aacdec.c        |   15 +++++----------
 omx/gstomx_aacenc.c        |   15 +++++----------
 omx/gstomx_adpcmdec.c      |   15 +++++----------
 omx/gstomx_adpcmenc.c      |   15 +++++----------
 omx/gstomx_amrnbdec.c      |   15 +++++----------
 omx/gstomx_amrnbenc.c      |   15 +++++----------
 omx/gstomx_amrwbdec.c      |   15 +++++----------
 omx/gstomx_amrwbenc.c      |   15 +++++----------
 omx/gstomx_audiosink.c     |   15 +++++----------
 omx/gstomx_dummy.c         |   15 +++++----------
 omx/gstomx_filereadersrc.c |   15 +++++----------
 omx/gstomx_g711dec.c       |   15 +++++----------
 omx/gstomx_g711enc.c       |   15 +++++----------
 omx/gstomx_g729dec.c       |   15 +++++----------
 omx/gstomx_g729enc.c       |   15 +++++----------
 omx/gstomx_h263dec.c       |   15 +++++----------
 omx/gstomx_h263enc.c       |   15 +++++----------
 omx/gstomx_h264dec.c       |   15 +++++----------
 omx/gstomx_h264enc.c       |   15 +++++----------
 omx/gstomx_ilbcdec.c       |   15 +++++----------
 omx/gstomx_ilbcenc.c       |   15 +++++----------
 omx/gstomx_jpegenc.c       |   15 +++++----------
 omx/gstomx_mp2dec.c        |   15 +++++----------
 omx/gstomx_mp3dec.c        |   15 +++++----------
 omx/gstomx_mpeg4dec.c      |   15 +++++----------
 omx/gstomx_mpeg4enc.c      |   15 +++++----------
 omx/gstomx_videosink.c     |   15 +++++----------
 omx/gstomx_volume.c        |   15 +++++----------
 omx/gstomx_vorbisdec.c     |   15 +++++----------
 omx/gstomx_wmvdec.c        |   15 +++++----------
 30 files changed, 150 insertions(+), 300 deletions(-)

diff --git a/omx/gstomx_aacdec.c b/omx/gstomx_aacdec.c
index 1916216..ddad4ca 100644
--- a/omx/gstomx_aacdec.c
+++ b/omx/gstomx_aacdec.c
@@ -88,16 +88,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL AAC audio decoder";
-        details.klass = "Codec/Decoder/Audio";
-        details.description = "Decodes audio in AAC format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL AAC audio decoder",
+            "Codec/Decoder/Audio",
+            "Decodes audio in AAC format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_aacenc.c b/omx/gstomx_aacenc.c
index 2eb0e96..e038791 100644
--- a/omx/gstomx_aacenc.c
+++ b/omx/gstomx_aacenc.c
@@ -154,16 +154,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL AAC audio encoder";
-        details.klass = "Codec/Encoder/Audio";
-        details.description = "Encodes audio in AAC format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL AAC audio encoder",
+            "Codec/Encoder/Audio",
+            "Encodes audio in AAC format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_adpcmdec.c b/omx/gstomx_adpcmdec.c
index d33de1a..6969937 100644
--- a/omx/gstomx_adpcmdec.c
+++ b/omx/gstomx_adpcmdec.c
@@ -64,16 +64,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL ADPCM audio decoder";
-        details.klass = "Codec/Decoder/Audio";
-        details.description = "Decodes audio in ADPCM format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL ADPCM audio decoder",
+            "Codec/Decoder/Audio",
+            "Decodes audio in ADPCM format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_adpcmenc.c b/omx/gstomx_adpcmenc.c
index fabb4bd..4e82f56 100644
--- a/omx/gstomx_adpcmenc.c
+++ b/omx/gstomx_adpcmenc.c
@@ -63,16 +63,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL ADPCM audio encoder";
-        details.klass = "Codec/Encoder/Audio";
-        details.description = "Encodes audio in ADPCM format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL ADPCM audio encoder",
+            "Codec/Encoder/Audio",
+            "Encodes audio in ADPCM format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_amrnbdec.c b/omx/gstomx_amrnbdec.c
index 0362731..7b8f707 100644
--- a/omx/gstomx_amrnbdec.c
+++ b/omx/gstomx_amrnbdec.c
@@ -61,16 +61,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL AMR-NB audio decoder";
-        details.klass = "Codec/Decoder/Audio";
-        details.description = "Decodes audio in AMR-NB format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL AMR-NB audio decoder",
+            "Codec/Decoder/Audio",
+            "Decodes audio in AMR-NB format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_amrnbenc.c b/omx/gstomx_amrnbenc.c
index 5e1ccff..8e61716 100644
--- a/omx/gstomx_amrnbenc.c
+++ b/omx/gstomx_amrnbenc.c
@@ -70,16 +70,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL AMR-NB audio encoder";
-        details.klass = "Codec/Encoder/Audio";
-        details.description = "Encodes audio in AMR-NB format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL AMR-NB audio encoder",
+            "Codec/Encoder/Audio",
+            "Encodes audio in AMR-NB format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_amrwbdec.c b/omx/gstomx_amrwbdec.c
index 581b3da..67d7b0f 100644
--- a/omx/gstomx_amrwbdec.c
+++ b/omx/gstomx_amrwbdec.c
@@ -61,16 +61,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL AMR-WB audio decoder";
-        details.klass = "Codec/Decoder/Audio";
-        details.description = "Decodes audio in AMR-WB format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL AMR-WB audio decoder",
+            "Codec/Decoder/Audio",
+            "Decodes audio in AMR-WB format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_amrwbenc.c b/omx/gstomx_amrwbenc.c
index 352b93f..7eaef10 100644
--- a/omx/gstomx_amrwbenc.c
+++ b/omx/gstomx_amrwbenc.c
@@ -70,16 +70,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL AMR-WB audio encoder";
-        details.klass = "Codec/Encoder/Audio";
-        details.description = "Encodes audio in AMR-WB format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL AMR-WB audio encoder",
+            "Codec/Encoder/Audio",
+            "Encodes audio in AMR-WB format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_audiosink.c b/omx/gstomx_audiosink.c
index 5f63d4c..3974034 100644
--- a/omx/gstomx_audiosink.c
+++ b/omx/gstomx_audiosink.c
@@ -48,16 +48,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL audiosink element";
-        details.klass = "Sink/Audio";
-        details.description = "Renders audio";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL audiosink element",
+            "Sink/Audio",
+            "Renders audio",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_dummy.c b/omx/gstomx_dummy.c
index 03ebc41..cc43c28 100644
--- a/omx/gstomx_dummy.c
+++ b/omx/gstomx_dummy.c
@@ -52,16 +52,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL dummy element";
-        details.klass = "None";
-        details.description = "Does nothing";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL dummy element",
+            "None",
+            "Does nothing",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_filereadersrc.c b/omx/gstomx_filereadersrc.c
index f6c8dd1..76a17fa 100644
--- a/omx/gstomx_filereadersrc.c
+++ b/omx/gstomx_filereadersrc.c
@@ -48,16 +48,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL filereader src element";
-        details.klass = "None";
-        details.description = "Does nothing";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL filereader src element",
+            "None",
+            "Does nothing",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_g711dec.c b/omx/gstomx_g711dec.c
index 2067953..87a1123 100644
--- a/omx/gstomx_g711dec.c
+++ b/omx/gstomx_g711dec.c
@@ -77,16 +77,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL G.711 audio decoder";
-        details.klass = "Codec/Decoder/Audio";
-        details.description = "Decodes audio in G.711 format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL G.711 audio decoder",
+            "Codec/Decoder/Audio",
+            "Decodes audio in G.711 format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_g711enc.c b/omx/gstomx_g711enc.c
index 003058e..550e435 100644
--- a/omx/gstomx_g711enc.c
+++ b/omx/gstomx_g711enc.c
@@ -76,16 +76,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL G.711 audio encoder";
-        details.klass = "Codec/Encoder/Audio";
-        details.description = "Encodes audio in G.711 format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL G.711 audio encoder",
+            "Codec/Encoder/Audio",
+            "Encodes audio in G.711 format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_g729dec.c b/omx/gstomx_g729dec.c
index a558011..917ea2f 100644
--- a/omx/gstomx_g729dec.c
+++ b/omx/gstomx_g729dec.c
@@ -66,16 +66,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL G.729 audio decoder";
-        details.klass = "Codec/Decoder/Audio";
-        details.description = "Decodes audio in G.729 format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL G.729 audio decoder",
+            "Codec/Decoder/Audio",
+            "Decodes audio in G.729 format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_g729enc.c b/omx/gstomx_g729enc.c
index 89d58db..64d93f7 100644
--- a/omx/gstomx_g729enc.c
+++ b/omx/gstomx_g729enc.c
@@ -75,16 +75,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL G.729 audio encoder";
-        details.klass = "Codec/Encoder/Audio";
-        details.description = "Encodes audio in G.729 format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL G.729 audio encoder",
+            "Codec/Encoder/Audio",
+            "Encodes audio in G.729 format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_h263dec.c b/omx/gstomx_h263dec.c
index 233e041..6c1e1d1 100644
--- a/omx/gstomx_h263dec.c
+++ b/omx/gstomx_h263dec.c
@@ -51,16 +51,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL H.263 video decoder";
-        details.klass = "Codec/Decoder/Video";
-        details.description = "Decodes video in H.263 format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL H.263 video decoder",
+            "Codec/Decoder/Video",
+            "Decodes video in H.263 format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_h263enc.c b/omx/gstomx_h263enc.c
index 9caaff7..4ec12b7 100644
--- a/omx/gstomx_h263enc.c
+++ b/omx/gstomx_h263enc.c
@@ -46,16 +46,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL H.263 video encoder";
-        details.klass = "Codec/Encoder/Video";
-        details.description = "Encodes video in H.263 format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL H.263 video encoder",
+            "Codec/Encoder/Video",
+            "Encodes video in H.263 format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_h264dec.c b/omx/gstomx_h264dec.c
index 4f950df..7815f98 100644
--- a/omx/gstomx_h264dec.c
+++ b/omx/gstomx_h264dec.c
@@ -50,16 +50,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL H.264/AVC video decoder";
-        details.klass = "Codec/Decoder/Video";
-        details.description = "Decodes video in H.264/AVC format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL H.264/AVC video decoder",
+            "Codec/Decoder/Video",
+            "Decodes video in H.264/AVC format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_h264enc.c b/omx/gstomx_h264enc.c
index efc4092..adf4c9a 100644
--- a/omx/gstomx_h264enc.c
+++ b/omx/gstomx_h264enc.c
@@ -45,16 +45,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL H.264/AVC video encoder";
-        details.klass = "Codec/Encoder/Video";
-        details.description = "Encodes video in H.264/AVC format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL H.264/AVC video encoder",
+            "Codec/Encoder/Video",
+            "Encodes video in H.264/AVC format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_ilbcdec.c b/omx/gstomx_ilbcdec.c
index ff899ac..69ce9ad 100644
--- a/omx/gstomx_ilbcdec.c
+++ b/omx/gstomx_ilbcdec.c
@@ -87,16 +87,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL iLBC audio decoder";
-        details.klass = "Codec/Decoder/Audio";
-        details.description = "Decodes audio in iLBC format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL iLBC audio decoder",
+            "Codec/Decoder/Audio",
+            "Decodes audio in iLBC format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_ilbcenc.c b/omx/gstomx_ilbcenc.c
index 1da2c53..5ecfbf7 100644
--- a/omx/gstomx_ilbcenc.c
+++ b/omx/gstomx_ilbcenc.c
@@ -86,16 +86,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL iLBC audio encoder";
-        details.klass = "Codec/Encoder/Audio";
-        details.description = "Encodes audio in iLBC format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL iLBC audio encoder",
+            "Codec/Encoder/Audio",
+            "Encodes audio in iLBC format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_jpegenc.c b/omx/gstomx_jpegenc.c
index e34c3fc..0ca4f8e 100644
--- a/omx/gstomx_jpegenc.c
+++ b/omx/gstomx_jpegenc.c
@@ -95,16 +95,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL JPEG image encoder";
-        details.klass = "Codec/Encoder/Image";
-        details.description = "Encodes image in JPEG format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL JPEG image encoder",
+            "Codec/Encoder/Image",
+            "Encodes image in JPEG format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_mp2dec.c b/omx/gstomx_mp2dec.c
index 319ef8e..9168d98 100644
--- a/omx/gstomx_mp2dec.c
+++ b/omx/gstomx_mp2dec.c
@@ -65,16 +65,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL MP2 audio decoder";
-        details.klass = "Codec/Decoder/Audio";
-        details.description = "Decodes audio in MP2 format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL MP2 audio decoder",
+            "Codec/Decoder/Audio",
+            "Decodes audio in MP2 format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_mp3dec.c b/omx/gstomx_mp3dec.c
index 8a1f465..19c217d 100644
--- a/omx/gstomx_mp3dec.c
+++ b/omx/gstomx_mp3dec.c
@@ -64,16 +64,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL MP3 audio decoder";
-        details.klass = "Codec/Decoder/Audio";
-        details.description = "Decodes audio in MP3 format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL MP3 audio decoder",
+            "Codec/Decoder/Audio",
+            "Decodes audio in MP3 format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_mpeg4dec.c b/omx/gstomx_mpeg4dec.c
index a23fef0..59b04a9 100644
--- a/omx/gstomx_mpeg4dec.c
+++ b/omx/gstomx_mpeg4dec.c
@@ -77,16 +77,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL MPEG-4 video decoder";
-        details.klass = "Codec/Decoder/Video";
-        details.description = "Decodes video in MPEG-4 format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL MPEG-4 video decoder",
+            "Codec/Decoder/Video",
+            "Decodes video in MPEG-4 format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_mpeg4enc.c b/omx/gstomx_mpeg4enc.c
index 3f97fb0..b715fc2 100644
--- a/omx/gstomx_mpeg4enc.c
+++ b/omx/gstomx_mpeg4enc.c
@@ -47,16 +47,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL MPEG-4 video encoder";
-        details.klass = "Codec/Encoder/Video";
-        details.description = "Encodes video in MPEG-4 format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL MPEG-4 video encoder",
+            "Codec/Encoder/Video",
+            "Encodes video in MPEG-4 format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_videosink.c b/omx/gstomx_videosink.c
index 4cfc300..d6f6938 100644
--- a/omx/gstomx_videosink.c
+++ b/omx/gstomx_videosink.c
@@ -85,16 +85,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL videosink element";
-        details.klass = "Video/Sink";
-        details.description = "Renders video";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL videosink element",
+            "Video/Sink",
+            "Renders video",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_volume.c b/omx/gstomx_volume.c
index 61c7f79..6ca8cf0 100644
--- a/omx/gstomx_volume.c
+++ b/omx/gstomx_volume.c
@@ -67,16 +67,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL Volume component";
-        details.klass = "Filter/Effect/Audio";
-        details.description = "Changes the volume with OpenMAX IL";
-        details.author = "Frederik Vernelen";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL Volume component",
+            "Filter/Effect/Audio",
+            "Changes the volume with OpenMAX IL",
+            "Frederik Vernelen");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_vorbisdec.c b/omx/gstomx_vorbisdec.c
index afd53fd..51145f6 100644
--- a/omx/gstomx_vorbisdec.c
+++ b/omx/gstomx_vorbisdec.c
@@ -59,16 +59,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL Vorbis audio decoder";
-        details.klass = "Codec/Decoder/Audio";
-        details.description = "Decodes audio in Vorbis format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL Vorbis audio decoder",
+            "Codec/Decoder/Audio",
+            "Decodes audio in Vorbis format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
diff --git a/omx/gstomx_wmvdec.c b/omx/gstomx_wmvdec.c
index b16fd88..eb05a40 100644
--- a/omx/gstomx_wmvdec.c
+++ b/omx/gstomx_wmvdec.c
@@ -50,16 +50,11 @@ type_base_init (gpointer g_class)
 
     element_class = GST_ELEMENT_CLASS (g_class);
 
-    {
-        GstElementDetails details;
-
-        details.longname = "OpenMAX IL WMV video decoder";
-        details.klass = "Codec/Decoder/Video";
-        details.description = "Decodes video in WMV format with OpenMAX IL";
-        details.author = "Felipe Contreras";
-
-        gst_element_class_set_details (element_class, &details);
-    }
+    gst_element_class_set_details_simple (element_class,
+            "OpenMAX IL WMV video decoder",
+            "Codec/Decoder/Video",
+            "Decodes video in WMV format with OpenMAX IL",
+            "Felipe Contreras");
 
     {
         GstPadTemplate *template;
-- 
1.7.0





More information about the Gstreamer-openmax mailing list