diff options
author | Benjamin Otte <otte@redhat.com> | 2010-03-18 17:30:26 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-03-18 22:46:41 +0100 |
commit | 775c7584fdad53053ae5b22bb19074cc6022ee98 (patch) | |
tree | 149c7daf4efd3ecaf17a179949e20b44347859ab /sys/dshowdecwrapper | |
parent | 5258d372be503da09fa21fbde28afe619bc0cdc1 (diff) | |
download | gstreamer-plugins-bad-775c7584fdad53053ae5b22bb19074cc6022ee98.tar.gz |
gst_element_class_set_details => gst_element_class_set_details_simple
Diffstat (limited to 'sys/dshowdecwrapper')
-rw-r--r-- | sys/dshowdecwrapper/gstdshowaudiodec.cpp | 20 | ||||
-rw-r--r-- | sys/dshowdecwrapper/gstdshowvideodec.cpp | 18 |
2 files changed, 15 insertions, 23 deletions
diff --git a/sys/dshowdecwrapper/gstdshowaudiodec.cpp b/sys/dshowdecwrapper/gstdshowaudiodec.cpp index fae5292dc..84f45277b 100644 --- a/sys/dshowdecwrapper/gstdshowaudiodec.cpp +++ b/sys/dshowdecwrapper/gstdshowaudiodec.cpp @@ -310,23 +310,19 @@ HRESULT AudioFakeSink::CheckMediaType(const CMediaType *pmt) static void gst_dshowaudiodec_base_init (gpointer klass) { - GstDshowAudioDecClass *audiodec_class = (GstDshowAudioDecClass *)klass; + GstDshowAudioDecClass *audiodec_class = (GstDshowAudioDecClass *) klass; GstPadTemplate *src, *sink; GstCaps *srccaps, *sinkcaps; GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - GstElementDetails details; + char *description; audiodec_class->entry = tmp; - details.longname = g_strdup_printf ("DirectShow %s Decoder Wrapper", - tmp->element_longname); - details.klass = g_strdup ("Codec/Decoder/Audio"); - details.description = g_strdup_printf ("DirectShow %s Decoder Wrapper", - tmp->element_longname); - details.author = "Sebastien Moutte <sebastien@moutte.net>"; - gst_element_class_set_details (element_class, &details); - g_free (details.longname); - g_free (details.klass); - g_free (details.description); + description = g_strdup_printf ("DirectShow %s Decoder Wrapper", + tmp->element_description); + gst_element_class_set_details_simple (element_class, description, + "Codec/Decoder/Audio", description, + "Sebastien Moutte <sebastien@moutte.net>"); + g_free (description); sinkcaps = gst_caps_from_string (tmp->sinkcaps); diff --git a/sys/dshowdecwrapper/gstdshowvideodec.cpp b/sys/dshowdecwrapper/gstdshowvideodec.cpp index fab929147..c73aa9c52 100644 --- a/sys/dshowdecwrapper/gstdshowvideodec.cpp +++ b/sys/dshowdecwrapper/gstdshowvideodec.cpp @@ -365,24 +365,20 @@ HRESULT VideoFakeSink::CheckMediaType(const CMediaType *pmt) static void gst_dshowvideodec_base_init (gpointer klass) { - GstDshowVideoDecClass *videodec_class = (GstDshowVideoDecClass *)klass; + GstDshowVideoDecClass *videodec_class = (GstDshowVideoDecClass *) klass; GstPadTemplate *src, *sink; GstCaps *srccaps, *sinkcaps; GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - GstElementDetails details; + char *description; videodec_class->entry = tmp; - details.longname = g_strdup_printf ("DirectShow %s Decoder Wrapper", + description = g_strdup_printf ("DirectShow %s Decoder Wrapper", tmp->element_longname); - details.klass = g_strdup ("Codec/Decoder/Video"); - details.description = g_strdup_printf ("DirectShow %s Decoder Wrapper", - tmp->element_longname); - details.author = "Sebastien Moutte <sebastien@moutte.net>"; - gst_element_class_set_details (element_class, &details); - g_free (details.longname); - g_free (details.klass); - g_free (details.description); + gst_element_class_set_details_simple (element_class, description, + "Codec/Decoder/Video", description, + "Sebastien Moutte <sebastien@moutte.net>"); + g_free (description); sinkcaps = gst_caps_from_string (tmp->sinkcaps); gst_caps_set_simple (sinkcaps, |