mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	gst: require a buffer size of at least 1
Setting the default size to 0 and outside of the min/max range now means that there is no suggestion for the size and it should use the suggestion of the peer.
This commit is contained in:
		
							parent
							
								
									f571253ff3
								
							
						
					
					
						commit
						f0a432118a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1179,7 +1179,7 @@ handle_format_change (GstPipeWireSrc *pwsrc,
 | 
				
			||||||
                                                            pwsrc->min_buffers,
 | 
					                                                            pwsrc->min_buffers,
 | 
				
			||||||
                                                            pwsrc->max_buffers),
 | 
					                                                            pwsrc->max_buffers),
 | 
				
			||||||
        SPA_PARAM_BUFFERS_blocks,  SPA_POD_CHOICE_RANGE_Int(0, 1, INT32_MAX),
 | 
					        SPA_PARAM_BUFFERS_blocks,  SPA_POD_CHOICE_RANGE_Int(0, 1, INT32_MAX),
 | 
				
			||||||
        SPA_PARAM_BUFFERS_size,    SPA_POD_CHOICE_RANGE_Int(0, 0, INT32_MAX),
 | 
					        SPA_PARAM_BUFFERS_size,    SPA_POD_CHOICE_RANGE_Int(0, 1, INT32_MAX),
 | 
				
			||||||
        SPA_PARAM_BUFFERS_stride,  SPA_POD_CHOICE_RANGE_Int(0, 0, INT32_MAX),
 | 
					        SPA_PARAM_BUFFERS_stride,  SPA_POD_CHOICE_RANGE_Int(0, 0, INT32_MAX),
 | 
				
			||||||
        SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int(buffertypes));
 | 
					        SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int(buffertypes));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue