diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2016-03-09 09:56:52 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-03-09 09:56:52 +0000 |
commit | aade5515acdcd86270b8040360eb3e456b29ce94 (patch) | |
tree | 07a0f167a0335bcc81204d202657be1f5fefdba6 | |
parent | c0ef1ea5533673995bd3cc1f8eb05ca2a9251e96 (diff) | |
download | gstreamer-plugins-base-aade5515acdcd86270b8040360eb3e456b29ce94.tar.gz |
theora: fix performance category initialisation
Remove unused _register() functions and look up the performance
debug category in a function that's actually called at some point.
-rw-r--r-- | ext/theora/gsttheoradec.c | 10 | ||||
-rw-r--r-- | ext/theora/gsttheoradec.h | 1 | ||||
-rw-r--r-- | ext/theora/gsttheoraenc.c | 7 | ||||
-rw-r--r-- | ext/theora/gsttheoraenc.h | 1 |
4 files changed, 1 insertions, 18 deletions
diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index 0bacaba61..e9e70e11c 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -192,6 +192,7 @@ gst_theora_dec_class_init (GstTheoraDecClass * klass) GST_DEBUG_FUNCPTR (theora_dec_decide_allocation); GST_DEBUG_CATEGORY_INIT (theoradec_debug, "theoradec", 0, "Theora decoder"); + GST_DEBUG_CATEGORY_GET (CAT_PERFORMANCE, "GST_PERFORMANCE"); } static void @@ -993,12 +994,3 @@ theora_dec_get_property (GObject * object, guint prop_id, break; } } - -gboolean -gst_theora_dec_register (GstPlugin * plugin) -{ - GST_DEBUG_CATEGORY_GET (CAT_PERFORMANCE, "GST_PERFORMANCE"); - - return gst_element_register (plugin, "theoradec", - GST_RANK_PRIMARY, GST_TYPE_THEORA_DEC); -} diff --git a/ext/theora/gsttheoradec.h b/ext/theora/gsttheoradec.h index 2445ad3f1..97b77153b 100644 --- a/ext/theora/gsttheoradec.h +++ b/ext/theora/gsttheoradec.h @@ -86,7 +86,6 @@ struct _GstTheoraDecClass }; GType gst_theora_dec_get_type (void); -gboolean gst_theora_dec_register (GstPlugin * plugin); G_END_DECLS diff --git a/ext/theora/gsttheoraenc.c b/ext/theora/gsttheoraenc.c index d1060501b..ce692f2b6 100644 --- a/ext/theora/gsttheoraenc.c +++ b/ext/theora/gsttheoraenc.c @@ -1199,10 +1199,3 @@ theora_enc_get_property (GObject * object, guint prop_id, break; } } - -gboolean -gst_theora_enc_register (GstPlugin * plugin) -{ - return gst_element_register (plugin, "theoraenc", - GST_RANK_PRIMARY, GST_TYPE_THEORA_ENC); -} diff --git a/ext/theora/gsttheoraenc.h b/ext/theora/gsttheoraenc.h index 29b4b01b4..0cbb73ba4 100644 --- a/ext/theora/gsttheoraenc.h +++ b/ext/theora/gsttheoraenc.h @@ -112,7 +112,6 @@ struct _GstTheoraEncClass }; GType gst_theora_enc_get_type (void); -gboolean gst_theora_enc_register (GstPlugin * plugin); G_END_DECLS |