mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: add device-restore extension
This is mostly to read and set the supported formats of a sink.
This commit is contained in:
		
							parent
							
								
									a25396c1eb
								
							
						
					
					
						commit
						49eb31f670
					
				
					 4 changed files with 261 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -406,7 +406,7 @@ const char *format_encoding2name(enum encoding enc)
 | 
			
		|||
		return encoding_names[enc].name;
 | 
			
		||||
	return "INVALID";
 | 
			
		||||
}
 | 
			
		||||
static uint32_t format_encoding2id(enum encoding enc)
 | 
			
		||||
uint32_t format_encoding2id(enum encoding enc)
 | 
			
		||||
{
 | 
			
		||||
	if (enc >= 0 && enc < (int)SPA_N_ELEMENTS(encoding_names) &&
 | 
			
		||||
	    encoding_names[enc].name != NULL)
 | 
			
		||||
| 
						 | 
				
			
			@ -632,6 +632,7 @@ static int format_info_iec958_from_param(struct format_info *info, struct spa_po
 | 
			
		|||
	default:
 | 
			
		||||
		return -ENOTSUP;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if ((info->props = pw_properties_new(NULL, NULL)) == NULL)
 | 
			
		||||
		return -errno;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue