mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	fix warnings
This commit is contained in:
		
							parent
							
								
									7f0d5a1c10
								
							
						
					
					
						commit
						3fa2ad33e4
					
				
					 3 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -317,11 +317,10 @@ static int make_buffer(struct impl *this)
 | 
				
			||||||
	struct buffer *b;
 | 
						struct buffer *b;
 | 
				
			||||||
	struct spa_io_buffers *io = this->io;
 | 
						struct spa_io_buffers *io = this->io;
 | 
				
			||||||
	struct spa_io_range *range = this->io_range;
 | 
						struct spa_io_range *range = this->io_range;
 | 
				
			||||||
	int n_bytes, n_samples;
 | 
						uint32_t n_bytes, n_samples, maxsize;
 | 
				
			||||||
	uint32_t maxsize;
 | 
					 | 
				
			||||||
	void *data;
 | 
						void *data;
 | 
				
			||||||
	struct spa_data *d;
 | 
						struct spa_data *d;
 | 
				
			||||||
	int32_t filled, avail;
 | 
						uint32_t filled, avail;
 | 
				
			||||||
	uint32_t index, offset, l0, l1;
 | 
						uint32_t index, offset, l0, l1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	read_timer(this);
 | 
						read_timer(this);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,7 +30,8 @@
 | 
				
			||||||
static void										\
 | 
					static void										\
 | 
				
			||||||
audio_test_src_create_sine_##type (struct impl *this, type *samples, size_t n_samples)	\
 | 
					audio_test_src_create_sine_##type (struct impl *this, type *samples, size_t n_samples)	\
 | 
				
			||||||
{											\
 | 
					{											\
 | 
				
			||||||
	int i, c, channels;								\
 | 
						size_t i;									\
 | 
				
			||||||
 | 
						uint32_t c, channels;								\
 | 
				
			||||||
	float step, amp;								\
 | 
						float step, amp;								\
 | 
				
			||||||
	float freq = this->props.freq;							\
 | 
						float freq = this->props.freq;							\
 | 
				
			||||||
	float volume = this->props.volume;						\
 | 
						float volume = this->props.volume;						\
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -85,7 +85,7 @@ ffmpeg_enum_interface_info(const struct spa_handle_factory *factory,
 | 
				
			||||||
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
 | 
					int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	static const AVCodec *c = NULL;
 | 
						static const AVCodec *c = NULL;
 | 
				
			||||||
	static int ci = 0;
 | 
						static uint32_t ci = 0;
 | 
				
			||||||
	static struct spa_handle_factory f;
 | 
						static struct spa_handle_factory f;
 | 
				
			||||||
	static char name[128];
 | 
						static char name[128];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue