[ekiga] Fix loading of codecs without an encoding name, e.g. MS-IMA-ADPCM
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Fix loading of codecs without an encoding name, e.g. MS-IMA-ADPCM
- Date: Wed, 21 Dec 2011 10:11:52 +0000 (UTC)
commit 0ba44a03d26bb74c5be9158cb598c774b3a78c84
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date: Wed Dec 21 11:11:31 2011 +0100
Fix loading of codecs without an encoding name, e.g. MS-IMA-ADPCM
.../components/opal/opal-codec-description.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-codec-description.cpp b/lib/engine/components/opal/opal-codec-description.cpp
index ac8a113..0e48771 100644
--- a/lib/engine/components/opal/opal-codec-description.cpp
+++ b/lib/engine/components/opal/opal-codec-description.cpp
@@ -54,7 +54,11 @@ CodecDescription::CodecDescription (OpalMediaFormat & format)
: Ekiga::CodecDescription ()
{
name = (const char *) format.GetEncodingName ();
- if (name == "G722")
+ // if a codec does not have a IANA encoding name, use its name instead
+ // (it is the case for MS-IMA-ADPCM for ex.)
+ if (name.empty())
+ name = (const char *) format.GetName ();
+ if (name == "G722") // G722 has the wrong rate in RFC
rate = 16000;
else
rate = format.GetClockRate ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]