summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-06-25 13:27:02 +0000
committerBenny Prijono <bennylp@teluu.com>2009-06-25 13:27:02 +0000
commit1028a42bfdd13453b39c3a19ebc59959df565bec (patch)
treee3c61d6e88949e0711963da9d30b751d817829e7 /pjmedia
parentd749012c94efaf397371b2294618465ec00fea08 (diff)
Ticket #773 (mixed fixes): backported changes from #772:
- from r2566: bug in pjsua application when reading the URL from the buddy list, causing corrupt/invalid URI to be returned. Thanks Robert Cichielo for the report. - from r2577: Updated floating point version of math statistic to return the rounded mean value. - from r2586: Updated stream_destroy() to call jbuf_destroy(). - from r2604: Changed var 'test' (in sdp_neg_test.c) from a global var to static var, since there was naming conflict with libg7221codec. git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.0@2818 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/src/pjmedia/stream.c4
-rw-r--r--pjmedia/src/test/sdp_neg_test.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia/stream.c b/pjmedia/src/pjmedia/stream.c
index 51d5edb5..4c174c88 100644
--- a/pjmedia/src/pjmedia/stream.c
+++ b/pjmedia/src/pjmedia/stream.c
@@ -1884,6 +1884,10 @@ PJ_DEF(pj_status_t) pjmedia_stream_destroy( pjmedia_stream *stream )
stream->jb_mutex = NULL;
}
+ /* Destroy jitter buffer */
+ if (stream->jb)
+ pjmedia_jbuf_destroy(stream->jb);
+
return PJ_SUCCESS;
}
diff --git a/pjmedia/src/test/sdp_neg_test.c b/pjmedia/src/test/sdp_neg_test.c
index 521fbf2d..53cc35d7 100644
--- a/pjmedia/src/test/sdp_neg_test.c
+++ b/pjmedia/src/test/sdp_neg_test.c
@@ -39,7 +39,7 @@ struct offer_answer
char *sdp3; /* local active media local answer */
};
-struct test
+static struct test
{
const char *title;
unsigned offer_answer_count;