mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	protocol-native: set error when add_event fails
This commit is contained in:
		
							parent
							
								
									0594b3ac82
								
							
						
					
					
						commit
						92f6239597
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -1429,8 +1429,10 @@ add_server(struct pw_protocol *protocol,
 | 
				
			||||||
	if ((res = add_socket(protocol, s)) < 0)
 | 
						if ((res = add_socket(protocol, s)) < 0)
 | 
				
			||||||
		goto error;
 | 
							goto error;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((s->resume = pw_loop_add_event(s->loop, do_resume, s)) == NULL)
 | 
						if ((s->resume = pw_loop_add_event(s->loop, do_resume, s)) == NULL) {
 | 
				
			||||||
 | 
							res = -errno;
 | 
				
			||||||
		goto error;
 | 
							goto error;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_log_info("%p: Listening on '%s'", protocol, name);
 | 
						pw_log_info("%p: Listening on '%s'", protocol, name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue