mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioconvert: clear negotiated rate
When we clear the format on the non-dsp port, set the rate back to 0 so that we can negotiate a new rate if needed.
This commit is contained in:
		
							parent
							
								
									4496aed5a6
								
							
						
					
					
						commit
						2dabd337dc
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -973,6 +973,7 @@ static int port_set_format(void *object,
 | 
				
			||||||
				port->have_format = false;
 | 
									port->have_format = false;
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
				port->have_format = this->have_profile;
 | 
									port->have_format = this->have_profile;
 | 
				
			||||||
 | 
								port->format.info.raw.rate = 0;
 | 
				
			||||||
			clear_buffers(this, port);
 | 
								clear_buffers(this, port);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -732,6 +732,7 @@ static int port_set_format(void *object,
 | 
				
			||||||
				port->have_format = this->have_profile;
 | 
									port->have_format = this->have_profile;
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
				port->have_format = false;
 | 
									port->have_format = false;
 | 
				
			||||||
 | 
								port->format.info.raw.rate = 0;
 | 
				
			||||||
			clear_buffers(this, port);
 | 
								clear_buffers(this, port);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue