mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pipewire-pulse: also store format/channels for sources
This commit is contained in:
		
							parent
							
								
									ba402209ba
								
							
						
					
					
						commit
						1bc383a7b7
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		| 
						 | 
					@ -273,19 +273,18 @@ static void get_service_data(struct module_zeroconf_publish_data *d,
 | 
				
			||||||
			flags |= SOURCE_HARDWARE;
 | 
								flags |= SOURCE_HARDWARE;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						s->ss = dev_info.ss;
 | 
				
			||||||
 | 
						s->cm = dev_info.map;
 | 
				
			||||||
 | 
						s->name = strdup(name);
 | 
				
			||||||
 | 
						s->props = pw_properties_copy(o->props);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (is_sink) {
 | 
						if (is_sink) {
 | 
				
			||||||
		s->is_sink = true;
 | 
							s->is_sink = true;
 | 
				
			||||||
		s->service_type = SERVICE_TYPE_SINK;
 | 
							s->service_type = SERVICE_TYPE_SINK;
 | 
				
			||||||
		s->ss = dev_info.ss;
 | 
					 | 
				
			||||||
		s->cm = dev_info.map;
 | 
					 | 
				
			||||||
		s->name = strdup(name);
 | 
					 | 
				
			||||||
		s->props = pw_properties_copy(o->props);
 | 
					 | 
				
			||||||
		s->subtype = flags & SINK_HARDWARE ? SUBTYPE_HARDWARE : SUBTYPE_VIRTUAL;
 | 
							s->subtype = flags & SINK_HARDWARE ? SUBTYPE_HARDWARE : SUBTYPE_VIRTUAL;
 | 
				
			||||||
	} else if (is_source) {
 | 
						} else if (is_source) {
 | 
				
			||||||
		s->is_sink = false;
 | 
							s->is_sink = false;
 | 
				
			||||||
		s->service_type = SERVICE_TYPE_SOURCE;
 | 
							s->service_type = SERVICE_TYPE_SOURCE;
 | 
				
			||||||
		s->name = strdup(name);
 | 
					 | 
				
			||||||
		s->props = pw_properties_copy(o->props);
 | 
					 | 
				
			||||||
		s->subtype = flags & SOURCE_HARDWARE ? SUBTYPE_HARDWARE : SUBTYPE_VIRTUAL;
 | 
							s->subtype = flags & SOURCE_HARDWARE ? SUBTYPE_HARDWARE : SUBTYPE_VIRTUAL;
 | 
				
			||||||
	} else
 | 
						} else
 | 
				
			||||||
		spa_assert_not_reached();
 | 
							spa_assert_not_reached();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue