mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	gst: take the thread lock before calling pw_stream functions
This commit is contained in:
		
							parent
							
								
									1661f15b9c
								
							
						
					
					
						commit
						bebad7888f
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1004,7 +1004,9 @@ no_caps:
 | 
			
		|||
    GST_ELEMENT_ERROR (basesrc, STREAM, FORMAT,
 | 
			
		||||
        ("%s", error_string),
 | 
			
		||||
        ("This element did not produce valid caps"));
 | 
			
		||||
    pw_thread_loop_lock (pwsrc->stream->core->loop);
 | 
			
		||||
    pw_stream_set_error (pwsrc->stream->pwstream, -EINVAL, "%s", error_string);
 | 
			
		||||
    pw_thread_loop_unlock (pwsrc->stream->core->loop);
 | 
			
		||||
    return FALSE;
 | 
			
		||||
  }
 | 
			
		||||
no_common_caps:
 | 
			
		||||
| 
						 | 
				
			
			@ -1014,7 +1016,9 @@ no_common_caps:
 | 
			
		|||
    GST_ELEMENT_ERROR (basesrc, STREAM, FORMAT,
 | 
			
		||||
        ("%s", error_string),
 | 
			
		||||
        ("This element does not have formats in common with the peer"));
 | 
			
		||||
    pw_thread_loop_lock (pwsrc->stream->core->loop);
 | 
			
		||||
    pw_stream_set_error (pwsrc->stream->pwstream, -EPIPE, "%s", error_string);
 | 
			
		||||
    pw_thread_loop_unlock (pwsrc->stream->core->loop);
 | 
			
		||||
    return FALSE;
 | 
			
		||||
  }
 | 
			
		||||
connect_error:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue