Skip to content

Commit

Permalink
Small fix for new YUV format selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFeldmann committed Feb 27, 2024
1 parent 1107c14 commit 5975a30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions YUViewLib/src/video/yuv/videoHandlerYUV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2827,6 +2827,8 @@ void videoHandlerYUV::slotYUVFormatControlChanged(int selectionIndex)
ui.yuvFormatComboBox->setCurrentIndex(*presetIndex);
}
}
else if (selectionIndex >= 0 && selectionIndex < videoHandlerYUV::formatPresetList.size())
newFormat = videoHandlerYUV::formatPresetList.at(selectionIndex);

// Set the new format (if new) and emit a signal that a new format was selected.
if (newFormat != this->srcPixelFormat && newFormat.isValid())
Expand Down

0 comments on commit 5975a30

Please sign in to comment.