mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	raop: Log if pa_atoi() fails, latency is not used anyway
Coverity ID: #1398152 Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
This commit is contained in:
		
							parent
							
								
									4cfd544f21
								
							
						
					
					
						commit
						add5a175b6
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -1102,8 +1102,10 @@ static void rtsp_stream_cb(pa_rtsp_client *rtsp, pa_rtsp_state_t state, pa_rtsp_
 | 
				
			||||||
            pa_log_debug("RAOP: RECORD");
 | 
					            pa_log_debug("RAOP: RECORD");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            alt = pa_xstrdup(pa_headerlist_gets(headers, "Audio-Latency"));
 | 
					            alt = pa_xstrdup(pa_headerlist_gets(headers, "Audio-Latency"));
 | 
				
			||||||
            if (alt)
 | 
					            if (alt) {
 | 
				
			||||||
                pa_atoi(alt, &latency);
 | 
					                if (pa_atoi(alt, &latency) < 0)
 | 
				
			||||||
 | 
					                    pa_log("Failed to parse audio latency");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            pa_raop_packet_buffer_reset(c->pbuf, c->seq);
 | 
					            pa_raop_packet_buffer_reset(c->pbuf, c->seq);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue