mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Speaker-Media-Player: Fix potential deadlock in audio pipeline (#8548)
This commit is contained in:
		
				
					committed by
					
						 Jesse Hills
						Jesse Hills
					
				
			
			
				
	
			
			
			
						parent
						
							c215098cb7
						
					
				
				
					commit
					6ca72a3a26
				
			| @@ -441,9 +441,10 @@ void AudioPipeline::decode_task(void *params) { | |||||||
|                                                  pdFALSE,                                    // Wait for all the bits, |                                                  pdFALSE,                                    // Wait for all the bits, | ||||||
|                                                  portMAX_DELAY);  // Block indefinitely until bit is set |                                                  portMAX_DELAY);  // Block indefinitely until bit is set | ||||||
|  |  | ||||||
|     if (!(event_bits & EventGroupBits::PIPELINE_COMMAND_STOP)) { |  | ||||||
|     xEventGroupClearBits(this_pipeline->event_group_, |     xEventGroupClearBits(this_pipeline->event_group_, | ||||||
|                          EventGroupBits::DECODER_MESSAGE_FINISHED | EventGroupBits::READER_MESSAGE_LOADED_MEDIA_TYPE); |                          EventGroupBits::DECODER_MESSAGE_FINISHED | EventGroupBits::READER_MESSAGE_LOADED_MEDIA_TYPE); | ||||||
|  |  | ||||||
|  |     if (!(event_bits & EventGroupBits::PIPELINE_COMMAND_STOP)) { | ||||||
|       InfoErrorEvent event; |       InfoErrorEvent event; | ||||||
|       event.source = InfoErrorSource::DECODER; |       event.source = InfoErrorSource::DECODER; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user