mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	media-session: handle unknown media
This commit is contained in:
		
							parent
							
								
									1baef2625c
								
							
						
					
					
						commit
						086166058a
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -994,6 +994,10 @@ static int rescan_node(struct impl *impl, struct node *node)
 | 
			
		|||
 | 
			
		||||
	if ((media = spa_dict_lookup(props, PW_NODE_PROP_MEDIA)) == NULL)
 | 
			
		||||
		media = node->media;
 | 
			
		||||
	if (media == NULL) {
 | 
			
		||||
		pw_log_debug(NAME" %p: node %d has unknown media", impl, node->obj.id);
 | 
			
		||||
		return 0;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if ((category = spa_dict_lookup(props, PW_NODE_PROP_CATEGORY)) == NULL) {
 | 
			
		||||
		pw_log_debug(NAME" %p: node %d find category from ports: %d %d",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue