mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: test: remove port EnumFormat param info
Both fakesink and fakesrc nodes don't support it.
This commit is contained in:
		
							parent
							
								
									befe7b13eb
								
							
						
					
					
						commit
						84e210ded9
					
				
					 2 changed files with 10 additions and 12 deletions
				
			
		| 
						 | 
					@ -782,13 +782,12 @@ impl_init(const struct spa_handle_factory *factory,
 | 
				
			||||||
	port->info.flags = SPA_PORT_FLAG_NO_REF;
 | 
						port->info.flags = SPA_PORT_FLAG_NO_REF;
 | 
				
			||||||
	if (this->props.live)
 | 
						if (this->props.live)
 | 
				
			||||||
		port->info.flags |= SPA_PORT_FLAG_LIVE;
 | 
							port->info.flags |= SPA_PORT_FLAG_LIVE;
 | 
				
			||||||
	port->params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ);
 | 
						port->params[0] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
 | 
				
			||||||
	port->params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
 | 
						port->params[1] = SPA_PARAM_INFO(SPA_PARAM_IO, 0);
 | 
				
			||||||
	port->params[2] = SPA_PARAM_INFO(SPA_PARAM_IO, 0);
 | 
						port->params[2] = SPA_PARAM_INFO(SPA_PARAM_Format, SPA_PARAM_INFO_WRITE);
 | 
				
			||||||
	port->params[3] = SPA_PARAM_INFO(SPA_PARAM_Format, SPA_PARAM_INFO_WRITE);
 | 
						port->params[3] = SPA_PARAM_INFO(SPA_PARAM_Buffers, 0);
 | 
				
			||||||
	port->params[4] = SPA_PARAM_INFO(SPA_PARAM_Buffers, 0);
 | 
					 | 
				
			||||||
	port->info.params = port->params;
 | 
						port->info.params = port->params;
 | 
				
			||||||
	port->info.n_params = 5;
 | 
						port->info.n_params = 4;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_list_init(&port->ready);
 | 
						spa_list_init(&port->ready);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -814,13 +814,12 @@ impl_init(const struct spa_handle_factory *factory,
 | 
				
			||||||
	port->info.flags = SPA_PORT_FLAG_NO_REF;
 | 
						port->info.flags = SPA_PORT_FLAG_NO_REF;
 | 
				
			||||||
	if (this->props.live)
 | 
						if (this->props.live)
 | 
				
			||||||
		port->info.flags |= SPA_PORT_FLAG_LIVE;
 | 
							port->info.flags |= SPA_PORT_FLAG_LIVE;
 | 
				
			||||||
	port->params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ);
 | 
						port->params[0] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
 | 
				
			||||||
	port->params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
 | 
						port->params[1] = SPA_PARAM_INFO(SPA_PARAM_IO, 0);
 | 
				
			||||||
	port->params[2] = SPA_PARAM_INFO(SPA_PARAM_IO, 0);
 | 
						port->params[2] = SPA_PARAM_INFO(SPA_PARAM_Format, SPA_PARAM_INFO_WRITE);
 | 
				
			||||||
	port->params[3] = SPA_PARAM_INFO(SPA_PARAM_Format, SPA_PARAM_INFO_WRITE);
 | 
						port->params[3] = SPA_PARAM_INFO(SPA_PARAM_Buffers, 0);
 | 
				
			||||||
	port->params[4] = SPA_PARAM_INFO(SPA_PARAM_Buffers, 0);
 | 
					 | 
				
			||||||
	port->info.params = port->params;
 | 
						port->info.params = port->params;
 | 
				
			||||||
	port->info.n_params = 5;
 | 
						port->info.n_params = 4;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_list_init(&port->empty);
 | 
						spa_list_init(&port->empty);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue