mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	
							parent
							
								
									8208e60b33
								
							
						
					
					
						commit
						738b764253
					
				
					 3 changed files with 9 additions and 6 deletions
				
			
		| 
						 | 
					@ -36,8 +36,6 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "format.h"
 | 
					#include "format.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define NAME	"pulse-server"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
struct defs {
 | 
					struct defs {
 | 
				
			||||||
	struct spa_fraction min_req;
 | 
						struct spa_fraction min_req;
 | 
				
			||||||
	struct spa_fraction default_req;
 | 
						struct spa_fraction default_req;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -45,7 +45,9 @@ static void module_null_sink_proxy_destroy(void *data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module *module = data;
 | 
						struct module *module = data;
 | 
				
			||||||
	struct module_null_sink_data *d = module->user_data;
 | 
						struct module_null_sink_data *d = module->user_data;
 | 
				
			||||||
	pw_log_info(NAME" %p: proxy %p destroy", module, d->proxy);
 | 
					
 | 
				
			||||||
 | 
						pw_log_info("proxy %p destroy", d->proxy);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_hook_remove(&d->listener);
 | 
						spa_hook_remove(&d->listener);
 | 
				
			||||||
	d->proxy = NULL;
 | 
						d->proxy = NULL;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -55,7 +57,8 @@ static void module_null_sink_proxy_bound(void *data, uint32_t global_id)
 | 
				
			||||||
	struct module *module = data;
 | 
						struct module *module = data;
 | 
				
			||||||
	struct module_null_sink_data *d = module->user_data;
 | 
						struct module_null_sink_data *d = module->user_data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_log_info(NAME" module %p proxy %p bound", module, d->proxy);
 | 
						pw_log_info("proxy %p bound", d->proxy);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	d->global_id = global_id;
 | 
						d->global_id = global_id;
 | 
				
			||||||
	module_emit_loaded(module, 0);
 | 
						module_emit_loaded(module, 0);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -64,9 +67,9 @@ static void module_null_sink_proxy_error(void *data, int seq, int res, const cha
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module *module = data;
 | 
						struct module *module = data;
 | 
				
			||||||
	struct module_null_sink_data *d = module->user_data;
 | 
						struct module_null_sink_data *d = module->user_data;
 | 
				
			||||||
	struct impl *impl = module->impl;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_log_info(NAME" %p module %p error %d", impl, module, res);
 | 
						pw_log_info("proxy %p error %d", d->proxy, res);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_proxy_destroy(d->proxy);
 | 
						pw_proxy_destroy(d->proxy);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,6 +22,8 @@
 | 
				
			||||||
 * DEALINGS IN THE SOFTWARE.
 | 
					 * DEALINGS IN THE SOFTWARE.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define NAME "pulse-server"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "config.h"
 | 
					#include "config.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue