decoder_api: don't ignore DECODE_COMMAND_STOP
When the decoder thread is waiting for free chunks in the music pipe, don't ignore the STOP command. Just return dc.command without further checks.
This commit is contained in:
		@@ -147,8 +147,7 @@ need_chunks(struct input_stream *is, bool wait)
 | 
				
			|||||||
		notify_wait(&dc.notify);
 | 
							notify_wait(&dc.notify);
 | 
				
			||||||
		notify_signal(&pc.notify);
 | 
							notify_signal(&pc.notify);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (dc.command != DECODE_COMMAND_STOP)
 | 
							return dc.command;
 | 
				
			||||||
			return dc.command;
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return DECODE_COMMAND_NONE;
 | 
						return DECODE_COMMAND_NONE;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user