mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	v4l2: don't error when we finish the enumeration
This commit is contained in:
		
							parent
							
								
									25292e5078
								
							
						
					
					
						commit
						7a05a35f8e
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -584,8 +584,10 @@ spa_v4l2_enum_format(struct impl *this, int seq,
 | 
				
			||||||
			port->fmtdesc.pixelformat = info->fourcc;
 | 
								port->fmtdesc.pixelformat = info->fourcc;
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			if ((res = xioctl(dev->fd, VIDIOC_ENUM_FMT, &port->fmtdesc)) < 0) {
 | 
								if ((res = xioctl(dev->fd, VIDIOC_ENUM_FMT, &port->fmtdesc)) < 0) {
 | 
				
			||||||
 | 
									if (errno == EINVAL)
 | 
				
			||||||
 | 
										goto enum_end;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				res = -errno;
 | 
									res = -errno;
 | 
				
			||||||
				if (errno != EINVAL)
 | 
					 | 
				
			||||||
				spa_log_error(this->log, "VIDIOC_ENUM_FMT: %m");
 | 
									spa_log_error(this->log, "VIDIOC_ENUM_FMT: %m");
 | 
				
			||||||
				goto exit;
 | 
									goto exit;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue