mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pipewire-v4l2: only compile V4L2_BUF_CAP_SUPPORTS* when defined
Fixes #1766
This commit is contained in:
		
							parent
							
								
									3c8a60944f
								
							
						
					
					
						commit
						9fee88239a
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -1572,7 +1572,9 @@ static int vidioc_reqbufs(struct file *file, struct v4l2_requestbuffers *arg)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		arg->count = file->n_buffers;
 | 
							arg->count = file->n_buffers;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					#ifdef V4L2_BUF_CAP_SUPPORTS_MMAP
 | 
				
			||||||
	arg->capabilities = V4L2_BUF_CAP_SUPPORTS_MMAP;
 | 
						arg->capabilities = V4L2_BUF_CAP_SUPPORTS_MMAP;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
	memset(arg->reserved, 0, sizeof(arg->reserved));
 | 
						memset(arg->reserved, 0, sizeof(arg->reserved));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_log_info("result count: %u", arg->count);
 | 
						pw_log_info("result count: %u", arg->count);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue