From 6d7667155dca929544fbcc362286df2618ed60d0 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Thu, 15 Feb 2018 16:28:39 +0100 Subject: SLS: skip to next working slide on problem When a slide cannot be encoded, skip to the next slide that works. To prevent an infinite loop, no skipping is done when the last slide of the slide store doesn't work and also no earlier slide of it worked. --- src/odr-padenc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/odr-padenc.h') diff --git a/src/odr-padenc.h b/src/odr-padenc.h index 46290f5..9d941a4 100644 --- a/src/odr-padenc.h +++ b/src/odr-padenc.h @@ -90,6 +90,7 @@ protected: DLSEncoder dls_encoder; SLSEncoder sls_encoder; SlideStore slides; + bool slides_success; int curr_dls_file; int output_fd; steady_clock::time_point run_timeline; @@ -101,6 +102,7 @@ protected: pad_packetizer(PADPacketizer(options.padlen)), dls_encoder(DLSEncoder(&pad_packetizer)), sls_encoder(SLSEncoder(&pad_packetizer)), + slides_success(false), curr_dls_file(0), output_fd(-1), run_timeline(steady_clock::now()), -- cgit v1.2.3