mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw-dump: don't emit remove events when not monitoring
When pw-dump is called without --monitor, it should output exactly one JSON array, and no remove event indicators.
This commit is contained in:
		
							parent
							
								
									603c67628e
								
							
						
					
					
						commit
						c36c028dd2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1392,7 +1392,7 @@ static void registry_event_global_remove(void *data, uint32_t id)
 | 
			
		|||
	if ((o = find_object(d, id)) == NULL)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if (!d->pattern || object_matches(o, d->pattern)) {
 | 
			
		||||
	if (d->monitor && (!d->pattern || object_matches(o, d->pattern))) {
 | 
			
		||||
		d->state = STATE_FIRST;
 | 
			
		||||
		if (d->state == STATE_FIRST)
 | 
			
		||||
			put_begin(d, NULL, "[", 0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue