mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw-dump: handle NULL in link format
This commit is contained in:
		
							parent
							
								
									0e910a9d03
								
							
						
					
					
						commit
						5e99ff52e7
					
				
					 1 changed files with 8 additions and 4 deletions
				
			
		| 
						 | 
					@ -452,10 +452,14 @@ static void put_pod_value(struct data *d, const char *key, const struct spa_type
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
static void put_pod(struct data *d, const char *key, const struct spa_pod *pod)
 | 
					static void put_pod(struct data *d, const char *key, const struct spa_pod *pod)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	put_pod_value(d, key, SPA_TYPE_ROOT,
 | 
						if (pod == NULL) {
 | 
				
			||||||
			SPA_POD_TYPE(pod),
 | 
							put_value(d, key, NULL);
 | 
				
			||||||
			SPA_POD_BODY(pod),
 | 
						} else {
 | 
				
			||||||
			SPA_POD_BODY_SIZE(pod));
 | 
							put_pod_value(d, key, SPA_TYPE_ROOT,
 | 
				
			||||||
 | 
									SPA_POD_TYPE(pod),
 | 
				
			||||||
 | 
									SPA_POD_BODY(pod),
 | 
				
			||||||
 | 
									SPA_POD_BODY_SIZE(pod));
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void put_params(struct data *d, const char *key,
 | 
					static void put_params(struct data *d, const char *key,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue