mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Improve default source state
Default source state should be SUSPENDED
This commit is contained in:
		
							parent
							
								
									4199d5652e
								
							
						
					
					
						commit
						53bc0f7848
					
				
					 4 changed files with 14 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -315,7 +315,7 @@ pinos_source_class_init (PinosSourceClass * klass)
 | 
			
		|||
                                                      "State",
 | 
			
		||||
                                                      "The state of the source",
 | 
			
		||||
                                                      PINOS_TYPE_SOURCE_STATE,
 | 
			
		||||
                                                      PINOS_SOURCE_STATE_INIT,
 | 
			
		||||
                                                      PINOS_SOURCE_STATE_SUSPENDED,
 | 
			
		||||
                                                      G_PARAM_READABLE |
 | 
			
		||||
                                                      G_PARAM_STATIC_STRINGS));
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -338,7 +338,9 @@ pinos_source_class_init (PinosSourceClass * klass)
 | 
			
		|||
static void
 | 
			
		||||
pinos_source_init (PinosSource * source)
 | 
			
		||||
{
 | 
			
		||||
  source->priv = PINOS_SOURCE_GET_PRIVATE (source);
 | 
			
		||||
  PinosSourcePrivate *priv = source->priv = PINOS_SOURCE_GET_PRIVATE (source);
 | 
			
		||||
 | 
			
		||||
  priv->state = PINOS_SOURCE_STATE_SUSPENDED;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
GBytes *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue