mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pipewire: rtsp-client: reset receive state when connected
Previously, the state used to receive messages from the remote end was not reset when the client connected, which could lead to issues if the same client is reused for multiple connections.
This commit is contained in:
		
							parent
							
								
									2d7eb8678b
								
							
						
					
					
						commit
						56df6fed13
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -186,6 +186,11 @@ static int handle_connect(struct pw_rtsp_client *client, int fd)
 | 
			
		|||
 | 
			
		||||
	client->connecting = false;
 | 
			
		||||
	client->wait_status = true;
 | 
			
		||||
 | 
			
		||||
	pw_properties_clear(client->headers);
 | 
			
		||||
	client->status = 0;
 | 
			
		||||
	client->line_pos = 0;
 | 
			
		||||
 | 
			
		||||
	pw_rtsp_client_emit_connected(client);
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue