mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	device-manager: Fix the writing of the database when priority doesn't change.
This commit is contained in:
		
							parent
							
								
									d5dc700913
								
							
						
					
					
						commit
						763de9e7c9
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -1281,7 +1281,9 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
 | 
				
			||||||
        first = TRUE;
 | 
					        first = TRUE;
 | 
				
			||||||
        for (i = 0; i < n_devices; ++i) {
 | 
					        for (i = 0; i < n_devices; ++i) {
 | 
				
			||||||
            if ((e = read_entry(u, devices[i]->device)) && ENTRY_VERSION == e->version) {
 | 
					            if ((e = read_entry(u, devices[i]->device)) && ENTRY_VERSION == e->version) {
 | 
				
			||||||
                if (e->priority[role_index] != idx) {
 | 
					                if (e->priority[role_index] == idx)
 | 
				
			||||||
 | 
					                    idx++;
 | 
				
			||||||
 | 
					                else {
 | 
				
			||||||
                    e->priority[role_index] = idx;
 | 
					                    e->priority[role_index] = idx;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    key.data = (char *) devices[i]->device;
 | 
					                    key.data = (char *) devices[i]->device;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue