[asterisk-scf-commits] asterisk-scf/integration/mediaformatgeneric.git branch "resampling" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Aug 24 16:47:43 CDT 2011


branch "resampling" has been updated
       via  718d611f82c39a285eda64339d6a2ccf2afd572d (commit)
      from  116fbb5d78fbe5435ee72291eee16eb6bc62a9a4 (commit)

Summary of changes:
 src/MediaFormatGeneric.cpp |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 718d611f82c39a285eda64339d6a2ccf2afd572d
Author: Mark Michelson <mmichelson at digium.com>
Date:   Wed Aug 24 16:28:35 2011 -0500

    Use -1 as payload so that a non-conflicting dynamic type will automatically be used.

diff --git a/src/MediaFormatGeneric.cpp b/src/MediaFormatGeneric.cpp
index 68b00f9..7bfa26f 100644
--- a/src/MediaFormatGeneric.cpp
+++ b/src/MediaFormatGeneric.cpp
@@ -330,9 +330,7 @@ void MediaFormatGenericApp::start(const std::string&, const Ice::CommunicatorPtr
     slin16->sampleSize = 16;
     slin16->operations = m16BitFormatOperationsProxy;
     SDPDescriptorPtr slin16SDP = new SDPDescriptor();
-    //XXX Need to come up with a good way of managing our dynamic
-    //payloads other than hard-coding them like this.
-    slin16SDP->payload = 102;
+    slin16SDP->payload = -1;
     slin16SDP->type = "audio";
     slin16SDP->subtype = "L16";
     slin16SDP->samplerate = slin16->sampleRate = 16000;

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/mediaformatgeneric.git



More information about the asterisk-scf-commits mailing list