mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Fix crash when AudioStreamOGGVorbis is empty
This commit is contained in:
		
							parent
							
								
									208dd5b4a6
								
							
						
					
					
						commit
						2cd2197362
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -624,6 +624,7 @@ Ref<Texture> EditorAudioStreamPreviewPlugin::generate(const RES &p_from, const S | |||
| 	uint8_t *imgw = imgdata.ptr(); | ||||
| 
 | ||||
| 	Ref<AudioStreamPlayback> playback = stream->instance_playback(); | ||||
| 	ERR_FAIL_COND_V(playback.is_null(), Ref<Texture>()); | ||||
| 
 | ||||
| 	float len_s = stream->get_length(); | ||||
| 	if (len_s == 0) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 qarmin
						qarmin