Skip to content

Commit

Permalink
Consume reset request on encoding start
Browse files Browse the repository at this point in the history
If a reset request is pending when a new encoding starts, then it is
implicitly fulfilled.
  • Loading branch information
rom1v committed Oct 28, 2024
1 parent 381fe95 commit a42a0ad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ private void streamCapture() throws IOException, ConfigurationException {
boolean headerWritten = false;

do {
capture.consumeReset(); // If a capture reset was requested, it is implicitly fulfilled
capture.prepare();
Size size = capture.getSize();
if (!headerWritten) {
Expand Down

0 comments on commit a42a0ad

Please sign in to comment.