Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2a4fc9fd authored by Pali Rohár's avatar Pali Rohár

libjingle: Disable oRTP debug messages in non-debug mode

parent 119eaaf0
......@@ -159,6 +159,12 @@ LinphoneVoiceChannel::LinphoneVoiceChannel(LinphoneMediaEngine*eng)
playport = PORT_UNUSED;
#ifdef _DEBUG
ortp_set_log_level_mask(ORTP_DEBUG|ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
#else
ortp_set_log_level_mask(ORTP_FATAL);
#endif
audio_stream_ = audio_stream_new(-1, 0); /* -1 means that function will choose some free port */
}
......@@ -189,8 +195,6 @@ bool LinphoneVoiceChannel::SetSendCodecs(const std::vector<AudioCodec>& codecs)
std::vector<AudioCodec>::const_iterator i;
ortp_set_log_level_mask(ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
for (i = codecs.begin(); i < codecs.end(); i++) {
if (!engine_->FindAudioCodec(*i))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment