mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: setting a format always clears buffers
This commit is contained in:
		
							parent
							
								
									8292c556e9
								
							
						
					
					
						commit
						ee1b79c4cd
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -625,7 +625,7 @@ static int impl_port_set_param(void *object,
 | 
				
			||||||
	if ((res = update_params(impl, port, id, ¶m, param ? 1 : 0)) < 0)
 | 
						if ((res = update_params(impl, port, id, ¶m, param ? 1 : 0)) < 0)
 | 
				
			||||||
		return res;
 | 
							return res;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (id == SPA_PARAM_Format && param == NULL)
 | 
						if (id == SPA_PARAM_Format)
 | 
				
			||||||
		clear_buffers(port);
 | 
							clear_buffers(port);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_filter_emit_param_changed(filter, port->user_data, id, param);
 | 
						pw_filter_emit_param_changed(filter, port->user_data, id, param);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -622,7 +622,7 @@ static int impl_port_set_param(void *object,
 | 
				
			||||||
	if ((res = update_params(impl, id, ¶m, param ? 1 : 0)) < 0)
 | 
						if ((res = update_params(impl, id, ¶m, param ? 1 : 0)) < 0)
 | 
				
			||||||
		return res;
 | 
							return res;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (id == SPA_PARAM_Format && param == NULL)
 | 
						if (id == SPA_PARAM_Format)
 | 
				
			||||||
		clear_buffers(stream);
 | 
							clear_buffers(stream);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_stream_emit_param_changed(stream, id, param);
 | 
						pw_stream_emit_param_changed(stream, id, param);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue