Skip to content

Commit

Permalink
Pause input AND output when a file transfer is in progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMueller2003 committed Dec 20, 2024
1 parent 161f450 commit 5dfc4e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/service/FPPDiscovery.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* c_FPPDiscovery.cpp
* Copyright (c) 2021, 2022 Shelby Merrick
* Copyright (c) 2021, 2025 Shelby Merrick
* http://www.forkineye.com
*
* This program is provided free for you to use in any way that you wish,
Expand Down Expand Up @@ -816,6 +816,9 @@ void c_FPPDiscovery::ProcessFile (
StopPlaying(true);
inFileUpload = true;
UploadFileName = filename;
InputMgr.SetOperationalState(false);
OutputMgr.PauseOutputs(true);
memset(OutputMgr.GetBufferAddress(), 0x00, OutputMgr.GetBufferSize());
}

// DEBUG_V();
Expand All @@ -833,6 +836,8 @@ void c_FPPDiscovery::ProcessFile (
// DEBUG_V("Allow file to play");
inFileUpload = false;
UploadFileName = "";
InputMgr.SetOperationalState(true);
OutputMgr.PauseOutputs(false);
}

} while (false);
Expand Down

0 comments on commit 5dfc4e9

Please sign in to comment.