decoder_api: cancel initial seek when song is not seekable
Fixes assertion failure.
This commit is contained in:
		
							
								
								
									
										2
									
								
								NEWS
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								NEWS
									
									
									
									
									
								
							@@ -1,4 +1,6 @@
 | 
			
		||||
ver 0.16.6 (2010/??/??)
 | 
			
		||||
* decoder:
 | 
			
		||||
  - fix assertion failure when resuming streams
 | 
			
		||||
* event_pipe: fix WIN32 regression
 | 
			
		||||
* define WINVER in ./configure
 | 
			
		||||
* WIN32: autodetect filesystem encoding
 | 
			
		||||
 
 | 
			
		||||
@@ -95,6 +95,12 @@ decoder_prepare_initial_seek(struct decoder *decoder)
 | 
			
		||||
		return true;
 | 
			
		||||
 | 
			
		||||
	if (decoder->initial_seek_pending) {
 | 
			
		||||
		if (!dc->seekable) {
 | 
			
		||||
			/* seeking is not possible */
 | 
			
		||||
			decoder->initial_seek_pending = false;
 | 
			
		||||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (dc->command == DECODE_COMMAND_NONE) {
 | 
			
		||||
			/* begin initial seek */
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user