Skip to content

[PATCH] Fix Y12I streaming error handling in vi5_capture_dequeue - #338

Merged
ymodlin merged 3 commits into
devfrom
FIX_20980_RGB_green_bar
Jan 22, 2026
Merged

[PATCH] Fix Y12I streaming error handling in vi5_capture_dequeue#338
ymodlin merged 3 commits into
devfrom
FIX_20980_RGB_green_bar

Conversation

@Nikolai-L

Copy link
Copy Markdown
Contributor

Improve error handling for Y12I streaming by refining the condition that sets the buffer state to error. This change addresses the specific handling of frame errors for Y12I format.

@Nikolai-L
Nikolai-L changed the base branch from deploy_scripts to dev January 22, 2026 06:08
@ymodlin
ymodlin requested review from Copilot and ymodlin January 22, 2026 06:50

This comment was marked as outdated.

@ymodlin
ymodlin force-pushed the FIX_20980_RGB_green_bar branch from 495a907 to 09e0076 Compare January 22, 2026 07:17
@Nikolai-L
Nikolai-L requested a review from Copilot January 22, 2026 07:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

+ /* TODO: Remove the branch or process the error for Y12I only */
+ if (false && frame_err)
+ /* TODO: Remove once Y12I streaming fixed */
+ if (frame_err && chan->fmtinfo->fourcc != V4L2_PIX_FMT_Y12I)

Copilot AI Jan 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition excludes Y12I from error handling, meaning frames with errors will be marked as DONE instead of ERROR for Y12I format. This could mask real frame errors and lead to corrupted data being processed downstream. If Y12I genuinely produces false positive frame errors, document the specific error conditions being suppressed and consider filtering only those specific errors rather than all frame errors.

Copilot uses AI. Check for mistakes.
Comment thread nvidia-oot/6.0/0003-Fix-y12i-calibration-stream.patch Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
ymodlin
ymodlin previously approved these changes Jan 22, 2026
@ymodlin
ymodlin merged commit 2fc839a into dev Jan 22, 2026
3 of 6 checks passed
@ymodlin
ymodlin deleted the FIX_20980_RGB_green_bar branch January 22, 2026 09:31
ymodlin pushed a commit that referenced this pull request Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants