]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
oops, I wasn't done with this
authorRussell Bryant <russell@russellbryant.com>
Thu, 12 May 2005 01:47:39 +0000 (01:47 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 12 May 2005 01:47:39 +0000 (01:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5632 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index 1d592aa978fe78b1daea1c3896504619eea8ed74..04bedfe754c95b8c5a5e13aff8edba0bf5fa0f11 100755 (executable)
--- a/rtp.c
+++ b/rtp.c
@@ -795,41 +795,6 @@ char* ast_rtp_lookup_mime_subtype(int isAstFormat, int code) {
   return "";
 }
 
-char *ast_rtp_lookup_mime_multiple(char *buf, int size, const int capability, const int isAstFormat)
-{
-       int format;
-       unsigned len;
-       char *end = buf;
-       char *start = buf;
-
-       if (!buf || !size)
-               return NULL;
-
-       snprintf(end, size, "0x%x (", capability);
-
-       len = strlen(end);
-       end += len;
-       size -= len;
-       start = end;
-
-       for (format = 1; format < AST_RTP_MAX; format <<= 1) {
-               if (capability & format) {
-                       const char *name = ast_rtp_lookup_mime_subtype(isAstFormat, format);
-                       snprintf(end, size, "%s|", name);
-                       len = strlen(end);
-                       end += len;
-                       size -= len;
-               }
-       }
-
-       if (start == end)
-               snprintf(start, size, "nothing)"); 
-       else if (size > 1)
-               *(end -1) = ')';
-       
-       return buf;
-}
-
 static int rtp_socket(void)
 {
        int s;