mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	device-manager: Fix the database write mode
This commit is contained in:
		
							parent
							
								
									1e2d236b99
								
							
						
					
					
						commit
						ce0b2bdc07
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -877,7 +877,7 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
 | 
			
		|||
            data.data = e;
 | 
			
		||||
            data.size = sizeof(*e);
 | 
			
		||||
 | 
			
		||||
            if (pa_database_set(u->database, &key, &data, FALSE) == 0) {
 | 
			
		||||
            if (pa_database_set(u->database, &key, &data, TRUE) == 0) {
 | 
			
		||||
                apply_entry(u, device, e);
 | 
			
		||||
 | 
			
		||||
                trigger_save(u);
 | 
			
		||||
| 
						 | 
				
			
			@ -995,7 +995,7 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
 | 
			
		|||
                            data.data = e2;
 | 
			
		||||
                            data.size = sizeof(*e2);
 | 
			
		||||
 | 
			
		||||
                            if (pa_database_set(u->database, &key, &data, FALSE))
 | 
			
		||||
                            if (pa_database_set(u->database, &key, &data, TRUE))
 | 
			
		||||
                                pa_log_warn("Could not save device");
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1022,7 +1022,7 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
 | 
			
		|||
                data.data = e;
 | 
			
		||||
                data.size = sizeof(*e);
 | 
			
		||||
 | 
			
		||||
                if (pa_database_set(u->database, &key, &data, FALSE))
 | 
			
		||||
                if (pa_database_set(u->database, &key, &data, TRUE))
 | 
			
		||||
                    pa_log_warn("Could not save device");
 | 
			
		||||
 | 
			
		||||
                trigger_save(u);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue