mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Merged revisions 125276 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r125276 | tilghman | 2008-06-26 06:01:21 -0500 (Thu, 26 Jun 2008) | 7 lines Check for rtcp structure before trying to delete schedule. (closes issue #12872) Reported by: destiny6628 Patches: 20080621__bug12872.diff.txt uploaded by Corydon76 (license 14) Tested by: destiny6628 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -2585,7 +2585,9 @@ struct ast_rtp *ast_rtp_get_bridged(struct ast_rtp *rtp) | |||||||
|  |  | ||||||
| void ast_rtp_stop(struct ast_rtp *rtp) | void ast_rtp_stop(struct ast_rtp *rtp) | ||||||
| { | { | ||||||
| 	AST_SCHED_DEL(rtp->sched, rtp->rtcp->schedid); | 	if (rtp->rtcp) { | ||||||
|  | 		AST_SCHED_DEL(rtp->sched, rtp->rtcp->schedid); | ||||||
|  | 	} | ||||||
| 	if (rtp->red) { | 	if (rtp->red) { | ||||||
| 		AST_SCHED_DEL(rtp->sched, rtp->red->schedid); | 		AST_SCHED_DEL(rtp->sched, rtp->red->schedid); | ||||||
| 		free(rtp->red); | 		free(rtp->red); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user