mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw-dump: only dump changed metadata entries
This commit is contained in:
		
							parent
							
								
									688b3c5ed4
								
							
						
					
					
						commit
						ae263eeffc
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1048,12 +1048,15 @@ static void metadata_dump(struct object *o)
 | 
			
		|||
	struct metadata_entry *e;
 | 
			
		||||
	put_begin(d, "metadata", "[", 0);
 | 
			
		||||
	spa_list_for_each(e, &o->data_list, link) {
 | 
			
		||||
		if (e->changed == 0)
 | 
			
		||||
			continue;
 | 
			
		||||
		put_begin(d, NULL, "{", STATE_SIMPLE);
 | 
			
		||||
		put_int(d, "subject", e->subject);
 | 
			
		||||
		put_value(d, "key", e->key);
 | 
			
		||||
		put_value(d, "type", e->type);
 | 
			
		||||
		put_value(d, "value", e->value);
 | 
			
		||||
		put_end(d, "}", STATE_SIMPLE);
 | 
			
		||||
		e->changed = 0;
 | 
			
		||||
	}
 | 
			
		||||
	put_end(d, "]", 0);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue