mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	add support for subscribing to autoload table changes
fix module-combine so that the sample rate of at least one streams is not changed from the original git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@206 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									f9e2058820
								
							
						
					
					
						commit
						daf3938a9e
					
				
					 7 changed files with 51 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -34,9 +34,11 @@
 | 
			
		|||
#include "sound-file.h"
 | 
			
		||||
#include "log.h"
 | 
			
		||||
#include "scache.h"
 | 
			
		||||
#include "subscribe.h"
 | 
			
		||||
 | 
			
		||||
static void entry_free(struct pa_autoload_entry *e) {
 | 
			
		||||
    assert(e);
 | 
			
		||||
    pa_subscription_post(e->core, PA_SUBSCRIPTION_EVENT_AUTOLOAD|PA_SUBSCRIPTION_EVENT_REMOVE, PA_INVALID_INDEX);
 | 
			
		||||
    pa_xfree(e->name);
 | 
			
		||||
    pa_xfree(e->module);
 | 
			
		||||
    pa_xfree(e->argument);
 | 
			
		||||
| 
						 | 
				
			
			@ -51,6 +53,7 @@ static struct pa_autoload_entry* entry_new(struct pa_core *c, const char *name)
 | 
			
		|||
        return NULL;
 | 
			
		||||
    
 | 
			
		||||
    e = pa_xmalloc(sizeof(struct pa_autoload_entry));
 | 
			
		||||
    e->core = c;
 | 
			
		||||
    e->name = pa_xstrdup(name);
 | 
			
		||||
    e->module = e->argument = NULL;
 | 
			
		||||
    e->in_action = 0;
 | 
			
		||||
| 
						 | 
				
			
			@ -61,6 +64,8 @@ static struct pa_autoload_entry* entry_new(struct pa_core *c, const char *name)
 | 
			
		|||
    
 | 
			
		||||
    pa_hashmap_put(c->autoload_hashmap, e->name, e);
 | 
			
		||||
 | 
			
		||||
    pa_subscription_post(c, PA_SUBSCRIPTION_EVENT_AUTOLOAD|PA_SUBSCRIPTION_EVENT_NEW, PA_INVALID_INDEX);
 | 
			
		||||
    
 | 
			
		||||
    return e;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue