mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	module-rtkit: don't use dbus when disabled
This commit is contained in:
		
							parent
							
								
									70390a631e
								
							
						
					
					
						commit
						9074bfc23a
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -546,6 +546,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
 | 
				
			||||||
	struct spa_system *system;
 | 
						struct spa_system *system;
 | 
				
			||||||
	const struct spa_support *support;
 | 
						const struct spa_support *support;
 | 
				
			||||||
	uint32_t n_support;
 | 
						uint32_t n_support;
 | 
				
			||||||
 | 
						const struct pw_properties *props;
 | 
				
			||||||
 | 
						const char *str;
 | 
				
			||||||
	int res;
 | 
						int res;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	support = pw_context_get_support(context, &n_support);
 | 
						support = pw_context_get_support(context, &n_support);
 | 
				
			||||||
| 
						 | 
					@ -558,6 +560,11 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
 | 
				
			||||||
        if (system == NULL)
 | 
					        if (system == NULL)
 | 
				
			||||||
                return -ENOTSUP;
 | 
					                return -ENOTSUP;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ((props = pw_context_get_properties(context)) != NULL &&
 | 
				
			||||||
 | 
						    (str = pw_properties_get(props, "support.dbus")) != NULL &&
 | 
				
			||||||
 | 
						    !pw_properties_parse_bool(str))
 | 
				
			||||||
 | 
							return -ENOTSUP;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	impl = calloc(1, sizeof(struct impl));
 | 
						impl = calloc(1, sizeof(struct impl));
 | 
				
			||||||
	if (impl == NULL)
 | 
						if (impl == NULL)
 | 
				
			||||||
		return -ENOMEM;
 | 
							return -ENOMEM;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue