mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	tests: fix for port status changes
We now need to tell the node we consumed a buffer by setting the status back to NEED_BUFFER.
This commit is contained in:
		
							parent
							
								
									fe68ca1be3
								
							
						
					
					
						commit
						3d54d31fac
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -192,8 +192,9 @@ on_source_event (SpaNode *node, SpaEvent *event, void *user_data)
 | 
			
		|||
    uint8_t *src, *dst;
 | 
			
		||||
    SpaMeta *metas;
 | 
			
		||||
    SpaData *datas;
 | 
			
		||||
    SpaPortIO *io = &data->source_output[0];
 | 
			
		||||
 | 
			
		||||
    b = data->bp[data->source_output[0].buffer_id];
 | 
			
		||||
    b = data->bp[io->buffer_id];
 | 
			
		||||
 | 
			
		||||
    metas = b->metas;
 | 
			
		||||
    datas = b->datas;
 | 
			
		||||
| 
						 | 
				
			
			@ -242,6 +243,8 @@ on_source_event (SpaNode *node, SpaEvent *event, void *user_data)
 | 
			
		|||
      SDL_RenderPresent (data->renderer);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    io->status = SPA_RESULT_NEED_BUFFER;
 | 
			
		||||
 | 
			
		||||
    if ((res = spa_node_process_output (data->source)) < 0)
 | 
			
		||||
      printf ("got pull error %d\n", res);
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue