Skip to content

Commit

Permalink
Fix DeckLink native control commands
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <gervais.maxime@gmail.com>
  • Loading branch information
g-maxime committed Jul 20, 2024
1 parent 237cc4a commit 0c8c405
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Common/DecklinkWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,9 @@ void DecklinkWrapper::SetPlaybackMode(playback_mode Mode, float Speed)
case Playback_Mode_Playing:
if (Speed > 1.0f)
DeckLinkDeckControl->Shuttle(25.0f, &Error);
if (Speed == 1.0f)
else if (Speed == 1.0f)
DeckLinkDeckControl->Play(&Error);
if (Speed > 0.0f)
else if (Speed > 0.0f)
DeckLinkDeckControl->Jog(25.0f, &Error);
else if (Speed < 1.0f)
DeckLinkDeckControl->Shuttle(-25.0f, &Error);
Expand All @@ -721,7 +721,7 @@ void DecklinkWrapper::SetPlaybackMode(playback_mode Mode, float Speed)
case Playback_Mode_NotPlaying:
if (Speed > 1.0f)
DeckLinkDeckControl->FastForward(false, &Error);
if (Speed > 0.0f)
else if (Speed > 0.0f)
DeckLinkDeckControl->Play(&Error);
else if (Speed < 0.0f)
DeckLinkDeckControl->Rewind(false, &Error);
Expand Down

0 comments on commit 0c8c405

Please sign in to comment.