mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-29 15:36:13 +00:00 
			
		
		
		
	one more place I forgot
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -184,7 +184,7 @@ static struct ast_frame  *nbs_xread(struct ast_channel *ast) | |||||||
| 	/* Some nice norms */ | 	/* Some nice norms */ | ||||||
| 	p->fr.datalen = 0; | 	p->fr.datalen = 0; | ||||||
| 	p->fr.samples = 0; | 	p->fr.samples = 0; | ||||||
| 	p->fr.data =  NULL; | 	p->fr.data.ptr =  NULL; | ||||||
| 	p->fr.src = type; | 	p->fr.src = type; | ||||||
| 	p->fr.offset = 0; | 	p->fr.offset = 0; | ||||||
| 	p->fr.mallocd=0; | 	p->fr.mallocd=0; | ||||||
| @@ -214,7 +214,7 @@ static int nbs_xwrite(struct ast_channel *ast, struct ast_frame *frame) | |||||||
| 		/* Don't try tos end audio on-hook */ | 		/* Don't try tos end audio on-hook */ | ||||||
| 		return 0; | 		return 0; | ||||||
| 	} | 	} | ||||||
| 	if (nbs_write(p->nbs, frame->data, frame->datalen / 2) < 0)  | 	if (nbs_write(p->nbs, frame->data.ptr, frame->datalen / 2) < 0)  | ||||||
| 		return -1; | 		return -1; | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user