mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	video-src: improve properties
Mark ourselves as a video source so that a session is created for us.
This commit is contained in:
		
							parent
							
								
									dbc3b4c1a4
								
							
						
					
					
						commit
						43e3ecdb3b
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -219,7 +219,10 @@ static void on_state_changed(void *_data, enum pw_remote_state old, enum pw_remo
 | 
			
		|||
		printf("remote state: \"%s\"\n",
 | 
			
		||||
		       pw_remote_state_as_string(state));
 | 
			
		||||
 | 
			
		||||
		data->stream = pw_stream_new(remote, "video-src", NULL);
 | 
			
		||||
		data->stream = pw_stream_new(remote, "video-src",
 | 
			
		||||
			pw_properties_new(
 | 
			
		||||
				"media.class", "Video/Source",
 | 
			
		||||
				NULL));
 | 
			
		||||
 | 
			
		||||
		params[0] = spa_pod_builder_object(&b,
 | 
			
		||||
			data->t->param.idEnumFormat, data->t->spa_format,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue