mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	gst: src: Minor fix for offsets
I don't see any actual usage of left/top padding (yet), but we should account for chunk offset in addition to the overall size.
This commit is contained in:
		
							parent
							
								
									cc6081b70d
								
							
						
					
					
						commit
						4c200183b9
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -676,7 +676,7 @@ static GstBuffer *dequeue_buffer(GstPipeWireSrc *pwsrc)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (i = 0; i < MIN (n_datas, n_planes); i++) {
 | 
					    for (i = 0; i < MIN (n_datas, n_planes); i++) {
 | 
				
			||||||
      struct spa_data *d = &b->buffer->datas[i];
 | 
					      struct spa_data *d = &b->buffer->datas[i];
 | 
				
			||||||
      meta->offset[i] = video_size;
 | 
					      meta->offset[i] = d->chunk->offset + video_size;
 | 
				
			||||||
      meta->stride[i] = d->chunk->stride;
 | 
					      meta->stride[i] = d->chunk->stride;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      video_size += d->chunk->size;
 | 
					      video_size += d->chunk->size;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue