mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	don't set the sink/source descriptions manually, use the new functions pa_{sink,source}_set_description() instead
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1205 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									af1b0317f6
								
							
						
					
					
						commit
						bfa6604b1d
					
				
					 15 changed files with 69 additions and 41 deletions
				
			
		| 
						 | 
				
			
			@ -320,6 +320,8 @@ int pa__init(pa_core *c, pa_module*m) {
 | 
			
		|||
    const char *p;
 | 
			
		||||
    pa_sample_spec ss;
 | 
			
		||||
    pa_modargs *ma = NULL;
 | 
			
		||||
    char *t;
 | 
			
		||||
    
 | 
			
		||||
    assert(c && m);
 | 
			
		||||
    
 | 
			
		||||
    if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
 | 
			
		||||
| 
						 | 
				
			
			@ -381,7 +383,8 @@ int pa__init(pa_core *c, pa_module*m) {
 | 
			
		|||
    u->sink->get_latency = get_latency_cb;
 | 
			
		||||
    u->sink->userdata = u;
 | 
			
		||||
    pa_sink_set_owner(u->sink, m);
 | 
			
		||||
    u->sink->description = pa_sprintf_malloc("Esound sink '%s'", p);
 | 
			
		||||
    pa_sink_set_description(u->sink, t = pa_sprintf_malloc("Esound sink '%s'", p));
 | 
			
		||||
    pa_xfree(t);
 | 
			
		||||
 | 
			
		||||
    u->memchunk.memblock = NULL;
 | 
			
		||||
    u->memchunk.length = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue