mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-30 02:56:44 +00:00 
			
		
		
		
	close SDL when closing the video, not after the video loop is finished
This commit is contained in:
		
							parent
							
								
									a62d5bbfe4
								
							
						
					
					
						commit
						e82c4afd50
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -565,8 +565,6 @@ namespace MWRender | ||||||
|             av_free_packet(packet); |             av_free_packet(packet); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         SDL_CloseAudio(); |  | ||||||
| 
 |  | ||||||
|         av_free(pFrame); |         av_free(pFrame); | ||||||
| 
 | 
 | ||||||
|         avpicture_free((AVPicture *)is->rgbaFrame); |         avpicture_free((AVPicture *)is->rgbaFrame); | ||||||
|  | @ -861,6 +859,8 @@ namespace MWRender | ||||||
|         delete mState; |         delete mState; | ||||||
|         mState = NULL; |         mState = NULL; | ||||||
| 
 | 
 | ||||||
|  |         SDL_CloseAudio(); | ||||||
|  | 
 | ||||||
|         mRectangle->setVisible (false); |         mRectangle->setVisible (false); | ||||||
|         MWBase::Environment::get().getWindowManager ()->removeGuiMode (MWGui::GM_Video); |         MWBase::Environment::get().getWindowManager ()->removeGuiMode (MWGui::GM_Video); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue