mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw-profiler: report error when we can't bind
This commit is contained in:
		
							parent
							
								
									413bda908a
								
							
						
					
					
						commit
						7693834a81
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -484,7 +484,7 @@ static void registry_event_global(void *data, uint32_t id,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	proxy = pw_registry_bind(d->registry, id, type, PW_VERSION_PROFILER, 0);
 | 
						proxy = pw_registry_bind(d->registry, id, type, PW_VERSION_PROFILER, 0);
 | 
				
			||||||
	if (proxy == NULL)
 | 
						if (proxy == NULL)
 | 
				
			||||||
		goto no_mem;
 | 
							goto error_proxy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	fprintf(stderr, "Attaching to Profiler id:%d\n", id);
 | 
						fprintf(stderr, "Attaching to Profiler id:%d\n", id);
 | 
				
			||||||
	d->profiler = proxy;
 | 
						d->profiler = proxy;
 | 
				
			||||||
| 
						 | 
					@ -492,8 +492,8 @@ static void registry_event_global(void *data, uint32_t id,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return;
 | 
						return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
no_mem:
 | 
					error_proxy:
 | 
				
			||||||
	pw_log_error("failed to create proxy");
 | 
						pw_log_error("failed to create proxy: %m");
 | 
				
			||||||
	return;
 | 
						return;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue