mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	media-session: always remember the new route availability
This commit is contained in:
		
							parent
							
								
									76febf1c7f
								
							
						
					
					
						commit
						bf062e455a
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -702,8 +702,6 @@ static int handle_route(struct device *dev, struct route *r)
 | 
				
			||||||
		if (r->available != SPA_PARAM_AVAILABILITY_yes && ri->available != r->available) {
 | 
							if (r->available != SPA_PARAM_AVAILABILITY_yes && ri->available != r->available) {
 | 
				
			||||||
			struct route t;
 | 
								struct route t;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			ri->available = r->available;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			/* an existing port has changed to unavailable */
 | 
								/* an existing port has changed to unavailable */
 | 
				
			||||||
			pw_log_info("device %d: route '%s' not available", dev->id, r->name);
 | 
								pw_log_info("device %d: route '%s' not available", dev->id, r->name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -718,6 +716,7 @@ static int handle_route(struct device *dev, struct route *r)
 | 
				
			||||||
				restore = true;
 | 
									restore = true;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							ri->available = r->available;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	ri->generation = dev->generation;
 | 
						ri->generation = dev->generation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue