mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: fix compilation
This commit is contained in:
		
							parent
							
								
									560b26a5b5
								
							
						
					
					
						commit
						b2c8bd9311
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
					@ -42,7 +42,7 @@ struct impl {
 | 
				
			||||||
	int samplesize;
 | 
						int samplesize;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool eld_supported()
 | 
					static bool eld_supported(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	static bool supported = false, checked = false;
 | 
						static bool supported = false, checked = false;
 | 
				
			||||||
	HANDLE_AACENCODER aacenc = NULL;
 | 
						HANDLE_AACENCODER aacenc = NULL;
 | 
				
			||||||
| 
						 | 
					@ -69,13 +69,14 @@ done:
 | 
				
			||||||
static int codec_fill_caps(const struct media_codec *codec, uint32_t flags,
 | 
					static int codec_fill_caps(const struct media_codec *codec, uint32_t flags,
 | 
				
			||||||
		uint8_t caps[A2DP_MAX_CAPS_SIZE])
 | 
							uint8_t caps[A2DP_MAX_CAPS_SIZE])
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
						bool have_eld = eld_supported();
 | 
				
			||||||
	static const a2dp_aac_t a2dp_aac = {
 | 
						static const a2dp_aac_t a2dp_aac = {
 | 
				
			||||||
		.object_type =
 | 
							.object_type =
 | 
				
			||||||
			/* NOTE: AAC Long Term Prediction and AAC Scalable are
 | 
								/* NOTE: AAC Long Term Prediction and AAC Scalable are
 | 
				
			||||||
			 *       not supported by the FDK-AAC library. */
 | 
								 *       not supported by the FDK-AAC library. */
 | 
				
			||||||
			AAC_OBJECT_TYPE_MPEG2_AAC_LC |
 | 
								AAC_OBJECT_TYPE_MPEG2_AAC_LC |
 | 
				
			||||||
			AAC_OBJECT_TYPE_MPEG4_AAC_LC |
 | 
								AAC_OBJECT_TYPE_MPEG4_AAC_LC |
 | 
				
			||||||
			(eld_supported() ? AAC_OBJECT_TYPE_MPEG4_AAC_ELD : 0),
 | 
								have_eld ? AAC_OBJECT_TYPE_MPEG4_AAC_ELD : 0,
 | 
				
			||||||
		AAC_INIT_FREQUENCY(
 | 
							AAC_INIT_FREQUENCY(
 | 
				
			||||||
			AAC_SAMPLING_FREQ_8000 |
 | 
								AAC_SAMPLING_FREQ_8000 |
 | 
				
			||||||
			AAC_SAMPLING_FREQ_11025 |
 | 
								AAC_SAMPLING_FREQ_11025 |
 | 
				
			||||||
| 
						 | 
					@ -283,7 +284,7 @@ static int codec_validate_config(const struct media_codec *codec, uint32_t flags
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	if (!(conf.object_type & (AAC_OBJECT_TYPE_MPEG2_AAC_LC |
 | 
						if (!(conf.object_type & (AAC_OBJECT_TYPE_MPEG2_AAC_LC |
 | 
				
			||||||
					AAC_OBJECT_TYPE_MPEG4_AAC_LC |
 | 
										AAC_OBJECT_TYPE_MPEG4_AAC_LC |
 | 
				
			||||||
					AAC_OBJECT_TYPE_MPEG2_AAC_ELD)))
 | 
										AAC_OBJECT_TYPE_MPEG4_AAC_ELD)))
 | 
				
			||||||
		return -EINVAL;
 | 
							return -EINVAL;
 | 
				
			||||||
	j = 0;
 | 
						j = 0;
 | 
				
			||||||
	SPA_FOR_EACH_ELEMENT_VAR(aac_frequencies, f) {
 | 
						SPA_FOR_EACH_ELEMENT_VAR(aac_frequencies, f) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue