mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Minor video fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										6
									
								
								file.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								file.c
									
									
									
									
									
								
							| @@ -184,8 +184,6 @@ int ast_format_unregister(const char *name) | ||||
| int ast_stopstream(struct ast_channel *tmp) | ||||
| { | ||||
| 	/* Stop a running stream if there is one */ | ||||
| 	if (tmp->vstream) | ||||
| 		ast_closestream(tmp->vstream); | ||||
| 	if (tmp->stream) { | ||||
| 		ast_closestream(tmp->stream); | ||||
| 		if (tmp->oldwriteformat && ast_set_write_format(tmp, tmp->oldwriteformat)) | ||||
| @@ -730,6 +728,10 @@ int ast_closestream(struct ast_filestream *f) | ||||
| 		f->realfilename = NULL; | ||||
| 	} | ||||
| 	f->fmt->close(f); | ||||
| 	if (f->vfs) { | ||||
| 		ast_closestream(f->vfs); | ||||
| 		f->vfs = NULL; | ||||
| 	} | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user