[asterisk-commits] russell: branch 1.8 r280391 - /branches/1.8/main/rtp_engine.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 29 11:25:48 CDT 2010
Author: russell
Date: Thu Jul 29 11:25:43 2010
New Revision: 280391
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=280391
Log:
Don't blow up if get_codec() was not provided in the RTP glue.
Modified:
branches/1.8/main/rtp_engine.c
Modified: branches/1.8/main/rtp_engine.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/rtp_engine.c?view=diff&rev=280391&r1=280390&r2=280391
==============================================================================
--- branches/1.8/main/rtp_engine.c (original)
+++ branches/1.8/main/rtp_engine.c Thu Jul 29 11:25:43 2010
@@ -1383,10 +1383,10 @@
if (video_glue1_res != AST_RTP_GLUE_RESULT_FORBID && (audio_glue1_res != AST_RTP_GLUE_RESULT_REMOTE || video_glue1_res != AST_RTP_GLUE_RESULT_REMOTE)) {
audio_glue1_res = AST_RTP_GLUE_RESULT_FORBID;
}
- if (audio_glue0_res == AST_RTP_GLUE_RESULT_REMOTE && (video_glue0_res == AST_RTP_GLUE_RESULT_FORBID || video_glue0_res == AST_RTP_GLUE_RESULT_REMOTE) && glue0->get_codec(c0)) {
+ if (audio_glue0_res == AST_RTP_GLUE_RESULT_REMOTE && (video_glue0_res == AST_RTP_GLUE_RESULT_FORBID || video_glue0_res == AST_RTP_GLUE_RESULT_REMOTE) && glue0->get_codec) {
codec0 = glue0->get_codec(c0);
}
- if (audio_glue1_res == AST_RTP_GLUE_RESULT_REMOTE && (video_glue1_res == AST_RTP_GLUE_RESULT_FORBID || video_glue1_res == AST_RTP_GLUE_RESULT_REMOTE) && glue1->get_codec(c1)) {
+ if (audio_glue1_res == AST_RTP_GLUE_RESULT_REMOTE && (video_glue1_res == AST_RTP_GLUE_RESULT_FORBID || video_glue1_res == AST_RTP_GLUE_RESULT_REMOTE) && glue1->get_codec) {
codec1 = glue1->get_codec(c1);
}
More information about the asterisk-commits
mailing list