mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: Implement PA_STREAM_DONT_INHIBIT_AUTO_SUSPEND
We do this by setting the node as passive. Fixes: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4255 Fixes: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4726
This commit is contained in:
		
							parent
							
								
									2cec77e7df
								
							
						
					
					
						commit
						60669920f0
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -1756,6 +1756,9 @@ static int do_create_playback_stream(struct client *client, uint32_t command, ui
 | 
				
			||||||
				PW_KEY_TARGET_OBJECT, "%u", sink_index);
 | 
									PW_KEY_TARGET_OBJECT, "%u", sink_index);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (dont_inhibit_auto_suspend)
 | 
				
			||||||
 | 
							pw_properties_set(props, PW_KEY_NODE_PASSIVE, "true");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	stream->stream = pw_stream_new(client->core, name, props);
 | 
						stream->stream = pw_stream_new(client->core, name, props);
 | 
				
			||||||
	props = NULL;
 | 
						props = NULL;
 | 
				
			||||||
	if (stream->stream == NULL)
 | 
						if (stream->stream == NULL)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue