summaryrefslogtreecommitdiff
path: root/sys/dshowsrcwrapper
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-10-17 17:34:26 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-10-17 17:46:34 +0100
commit32ba17cd0f37d407ab810858f356de386c50b7b9 (patch)
tree794351ffb8e0c764d1896ee9a505b76616738719 /sys/dshowsrcwrapper
parenta7258842ab7a68514011298c1038cca5c6e1f9a5 (diff)
downloadgstreamer-plugins-bad-32ba17cd0f37d407ab810858f356de386c50b7b9.tar.gz
Use gst_element_class_set_static_metadata()
where possible. Avoids some string copies. Also re-indent some stuff. Also some indent fixes here and there.
Diffstat (limited to 'sys/dshowsrcwrapper')
-rw-r--r--sys/dshowsrcwrapper/gstdshowaudiosrc.cpp2
-rw-r--r--sys/dshowsrcwrapper/gstdshowvideosrc.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dshowsrcwrapper/gstdshowaudiosrc.cpp b/sys/dshowsrcwrapper/gstdshowaudiosrc.cpp
index 6d4f15c70..2ba9c3b10 100644
--- a/sys/dshowsrcwrapper/gstdshowaudiosrc.cpp
+++ b/sys/dshowsrcwrapper/gstdshowaudiosrc.cpp
@@ -121,7 +121,7 @@ gst_dshowaudiosrc_base_init (gpointer klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
- gst_element_class_set_metadata (element_class,
+ gst_element_class_set_static_metadata (element_class,
"Directshow audio capture source", "Source/Audio",
"Receive data from a directshow audio capture graph",
"Sebastien Moutte <sebastien@moutte.net>");
diff --git a/sys/dshowsrcwrapper/gstdshowvideosrc.cpp b/sys/dshowsrcwrapper/gstdshowvideosrc.cpp
index 872932394..4fe0695a2 100644
--- a/sys/dshowsrcwrapper/gstdshowvideosrc.cpp
+++ b/sys/dshowsrcwrapper/gstdshowvideosrc.cpp
@@ -129,7 +129,7 @@ gst_dshowvideosrc_base_init (gpointer klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
- gst_element_class_set_metadata (element_class,
+ gst_element_class_set_static_metadata (element_class,
"DirectShow video capture source", "Source/Video",
"Receive data from a directshow video capture graph",
"Sebastien Moutte <sebastien@moutte.net>");