diff options
author | Stefan Pöschel <github@basicmaster.de> | 2018-02-15 16:28:39 +0100 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2018-02-15 16:28:39 +0100 |
commit | 6d7667155dca929544fbcc362286df2618ed60d0 (patch) | |
tree | 443f75e77c35a3e469b90ddbdb6b29f5ebfa39b2 /src/odr-padenc.h | |
parent | 434e6e95a04e96a3265c2394f2304cfb3a932f10 (diff) | |
download | ODR-PadEnc-6d7667155dca929544fbcc362286df2618ed60d0.tar.gz ODR-PadEnc-6d7667155dca929544fbcc362286df2618ed60d0.tar.bz2 ODR-PadEnc-6d7667155dca929544fbcc362286df2618ed60d0.zip |
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.
Diffstat (limited to 'src/odr-padenc.h')
-rw-r--r-- | src/odr-padenc.h | 2 |
1 files changed, 2 insertions, 0 deletions
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()), |