Skip to content

Commit

Permalink
Update Quality setter.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 30, 2020
1 parent e3f715d commit 6ef5eaa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ScreenCast.Core/Models/Viewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ public int ImageQuality
}
set
{
if (imageQuality > 100 || imageQuality < 0)
if (imageQuality == value)
{
return;
}
if (imageQuality == value)

if (imageQuality > 100 || imageQuality < 0)
{
return;
}

imageQuality = value;

EncoderParams.Param[0] = new EncoderParameter(Encoder.Quality, value);
Expand Down

0 comments on commit 6ef5eaa

Please sign in to comment.