mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	module-rtp-sink: fix net.loop
Avoid uninitialized variable use
This commit is contained in:
		
							parent
							
								
									f8dfdf7b99
								
							
						
					
					
						commit
						4bf1c2946e
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -443,6 +443,7 @@ static int make_socket(struct sockaddr_storage *src, socklen_t src_len,
 | 
				
			||||||
		goto error;
 | 
							goto error;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (is_multicast((struct sockaddr*)dst, dst_len)) {
 | 
						if (is_multicast((struct sockaddr*)dst, dst_len)) {
 | 
				
			||||||
 | 
							val = loop;
 | 
				
			||||||
		if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &val, sizeof(val)) < 0)
 | 
							if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &val, sizeof(val)) < 0)
 | 
				
			||||||
			pw_log_warn("setsockopt(IP_MULTICAST_LOOP) failed: %m");
 | 
								pw_log_warn("setsockopt(IP_MULTICAST_LOOP) failed: %m");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue