Skip to content

Commit

Permalink
Fix input check
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Feb 11, 2020
1 parent 86d1a97 commit 051ea42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion TwitchDownloaderWPF/PageChatRender.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,11 @@ private bool ValidateInputs()

if (colorBackground.SelectedColor.Value.A < 255)
{
if ((((VideoContainer)comboFormat.SelectedItem).Name != "MOV" && ((Codec)comboCodec.SelectedItem).Name != "RLE") || ((VideoContainer) comboFormat.SelectedItem).Name == "WEBM")
if ((((VideoContainer)comboFormat.SelectedItem).Name == "MOV" && ((Codec)comboCodec.SelectedItem).Name == "RLE") || ((VideoContainer)comboFormat.SelectedItem).Name == "WEBM")
{
return true;
}
else
{
AppendLog("ERROR: You've selected an alpha channel (transparency) for a container/codec that does not support it.");
AppendLog("Remove transparency or encode with MOV and RLE (file size will be large)");
Expand Down

0 comments on commit 051ea42

Please sign in to comment.