mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-10-29 05:40:23 -04:00 
			
		
		
		
	bluetooth/gst: Correct var type for GST_TYPE_BITMASK
GST_TYPE_BITMASK is 64-bit bit mask while corresponding channel_mask in pulseaudio is int therefore usually 32-bit. Switch to uint64_t instead to match internal representation in gstreamer. Fixes pulseaudio crash on ARM 32-bit when pulseaudio is compiled with gstreamer and either LDAC or aptX support is available. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/723>
This commit is contained in:
		
							parent
							
								
									ee8bfb49ad
								
							
						
					
					
						commit
						dd4dc5e8bc
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -22,6 +22,7 @@ | |||
| #endif | ||||
| 
 | ||||
| #include <arpa/inet.h> | ||||
| #include <stdint.h> | ||||
| 
 | ||||
| #include <pulsecore/log.h> | ||||
| #include <pulsecore/macro.h> | ||||
|  | @ -82,7 +83,7 @@ fail: | |||
| static GstCaps *gst_create_caps_from_sample_spec(const pa_sample_spec *ss) { | ||||
|     gchar *sample_format; | ||||
|     GstCaps *caps; | ||||
|     int channel_mask; | ||||
|     uint64_t channel_mask; | ||||
| 
 | ||||
|     switch (ss->format) { | ||||
|         case PA_SAMPLE_S16LE: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jan Palus
						Jan Palus