mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: enable adapter for all audio streams
This way, we can support streams with normal and passthrough formats by switching the adapter mode.
This commit is contained in:
		
							parent
							
								
									10c3bf5ff3
								
							
						
					
					
						commit
						44d575ba70
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1757,8 +1757,7 @@ pw_stream_connect(struct pw_stream *stream,
 | 
			
		|||
 | 
			
		||||
	pw_impl_node_set_implementation(follower, &impl->impl_node);
 | 
			
		||||
 | 
			
		||||
	if (impl->media_type == SPA_MEDIA_TYPE_audio &&
 | 
			
		||||
	    impl->media_subtype == SPA_MEDIA_SUBTYPE_raw) {
 | 
			
		||||
	if (impl->media_type == SPA_MEDIA_TYPE_audio) {
 | 
			
		||||
		factory = pw_context_find_factory(impl->context, "adapter");
 | 
			
		||||
		if (factory == NULL) {
 | 
			
		||||
			pw_log_error(NAME" %p: no adapter factory found", stream);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue