mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa: Check pa_modargs_get_value_boolean() retval for use_ucm
CID 1137983
This commit is contained in:
		
							parent
							
								
									0a5cff6241
								
							
						
					
					
						commit
						61344493bf
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -741,7 +741,10 @@ int pa__init(pa_module *m) {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pa_modargs_get_value_boolean(u->modargs, "use_ucm", &u->use_ucm);
 | 
					    if (pa_modargs_get_value_boolean(u->modargs, "use_ucm", &u->use_ucm) < 0) {
 | 
				
			||||||
 | 
					        pa_log("Failed to parse use_ucm argument.");
 | 
				
			||||||
 | 
					        goto fail;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Force ALSA to reread its configuration. This matters if our device
 | 
					    /* Force ALSA to reread its configuration. This matters if our device
 | 
				
			||||||
     * was hot-plugged after ALSA has already read its configuration - see
 | 
					     * was hot-plugged after ALSA has already read its configuration - see
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue