[farsight2/master] Only enable stun debug if rawudp debug level is debug or log
Olivier Crête
olivier.crete at collabora.co.uk
Fri Apr 10 14:23:00 PDT 2009
---
transmitters/rawudp/fs-rawudp-component.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/transmitters/rawudp/fs-rawudp-component.c b/transmitters/rawudp/fs-rawudp-component.c
index 0e416fe..0446199 100644
--- a/transmitters/rawudp/fs-rawudp-component.c
+++ b/transmitters/rawudp/fs-rawudp-component.c
@@ -507,6 +507,11 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
g_type_class_add_private (klass, sizeof (FsRawUdpComponentPrivate));
+
+ if (gst_debug_category_get_threshold (GST_CAT_DEFAULT) >= GST_LEVEL_DEBUG)
+ stun_debug_enable ();
+ else
+ stun_debug_disable ();
}
--
1.5.6.5
More information about the farsight-commits
mailing list