mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	ladspa-sink: fix Windows compilation
The macro LADSPA_PATH was defined as a list of directories quoted but without taking into account that the directory names, specially on Windows, can contain backslashes that need escaping. This patch removes the quoted from the macro and uses the C preprocessor to quote it properly using a helper macro.
This commit is contained in:
		
							parent
							
								
									79ee19bb51
								
							
						
					
					
						commit
						8c22cd54de
					
				
					 2 changed files with 9 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1048,8 +1048,15 @@ int pa__init(pa_module*m) {
 | 
			
		|||
    u->output = NULL;
 | 
			
		||||
    u->ss = ss;
 | 
			
		||||
 | 
			
		||||
    /* If the LADSPA_PATH environment variable is not set, we use the
 | 
			
		||||
     * LADSPA_PATH preprocessor macro instead. The macro can contain characters
 | 
			
		||||
     * that need to be escaped (especially on Windows backslashes are common).
 | 
			
		||||
     * The "#" preprocessor operator helpfully adds the required escaping while
 | 
			
		||||
     * turning the LADSPA_PATH macro into a string. */
 | 
			
		||||
#define QUOTE_MACRO(x) #x
 | 
			
		||||
    if (!(e = getenv("LADSPA_PATH")))
 | 
			
		||||
        e = LADSPA_PATH;
 | 
			
		||||
        e = QUOTE_MACRO(LADSPA_PATH);
 | 
			
		||||
#undef QUOTE_MACRO
 | 
			
		||||
 | 
			
		||||
    /* FIXME: This is not exactly thread safe */
 | 
			
		||||
    t = pa_xstrdup(lt_dlgetsearchpath());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue