Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <[email protected]>
  • Loading branch information
g-maxime committed May 2, 2024
1 parent d155fbd commit 1038952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Common/LinuxWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ void LinuxWrapper::SetPlaybackMode(playback_mode Mode, float Speed)
{
case Playback_Mode_Playing:
{
uint8_t Code;
uint8_t Code = 0;
if (Speed >= 2.0f) // fastest play mode
Code=AVC1394_VCR_OPERAND_PLAY_FASTEST_FORWARD;
else if (Speed > 1.0f) // 2x play
Expand All @@ -570,7 +570,7 @@ void LinuxWrapper::SetPlaybackMode(playback_mode Mode, float Speed)
}
case Playback_Mode_NotPlaying:
{
uint8_t Code;
uint8_t Code = 0;
if (Speed == 0.0f) // stop
Code=AVC1394_VCR_OPERAND_WIND_STOP;
else if (Speed > 0.0f) // fast-forward
Expand Down

0 comments on commit 1038952

Please sign in to comment.