mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: fix scan-build errors for unused variables
All cases of value stored but never read
This commit is contained in:
		
							parent
							
								
									2cb7b19b7d
								
							
						
					
					
						commit
						07503410c7
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
					@ -315,11 +315,10 @@ static inline int push_queue(struct stream *stream, struct queue *queue, struct
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static inline struct buffer *pop_queue(struct stream *stream, struct queue *queue)
 | 
					static inline struct buffer *pop_queue(struct stream *stream, struct queue *queue)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	int32_t avail;
 | 
					 | 
				
			||||||
	uint32_t index, id;
 | 
						uint32_t index, id;
 | 
				
			||||||
	struct buffer *buffer;
 | 
						struct buffer *buffer;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((avail = spa_ringbuffer_get_read_index(&queue->ring, &index)) < 1) {
 | 
						if (spa_ringbuffer_get_read_index(&queue->ring, &index) < 1) {
 | 
				
			||||||
		errno = EPIPE;
 | 
							errno = EPIPE;
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -1492,10 +1491,10 @@ static int find_format(struct stream *impl, enum pw_direction direction,
 | 
				
			||||||
	struct spa_pod *format;
 | 
						struct spa_pod *format;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_pod_builder_init(&b, buffer, sizeof(buffer));
 | 
						spa_pod_builder_init(&b, buffer, sizeof(buffer));
 | 
				
			||||||
	if ((res = spa_node_port_enum_params_sync(&impl->impl_node,
 | 
						if (spa_node_port_enum_params_sync(&impl->impl_node,
 | 
				
			||||||
				impl->direction, 0,
 | 
									impl->direction, 0,
 | 
				
			||||||
				SPA_PARAM_EnumFormat, &state,
 | 
									SPA_PARAM_EnumFormat, &state,
 | 
				
			||||||
				NULL, &format, &b)) != 1) {
 | 
									NULL, &format, &b) != 1) {
 | 
				
			||||||
		pw_log_warn(NAME" %p: no format given", impl);
 | 
							pw_log_warn(NAME" %p: no format given", impl);
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue