Skip to content

audioringbuffer: set waiting to 0 when signaling

Robert Rosengren requested to merge robberos/gstreamer:ringbuffer-deadlock into main

MR for a deadlock situation in audio ring buffer and its sub classes.

 audioringbuffer: set waiting to 0 when signaling                       
                                                                        
 Reset the waiting thread counter in all places to be consistent        
 when sending signal for the audio ring buffer. This fix applies it to  
 pause, stop and release, which are states that will go into a callback 
 of the subclass. Having the waiting counter reset will avoid having    
 executing thread of the same subclass trying to take the mutex when    
 callong gst_audio_ring_buffer_advance.                                 
Edited by Robert Rosengren

Merge request reports