summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mot-encoder.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp
index e2dae36..f2c2fb7 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -294,22 +294,23 @@ int main(int argc, char *argv[])
md.filepath = imagepath;
// if an image was transmitted before, it resumes its old file identity
- it_transmission_history = transmission_history.find(pDirent->d_name);
- if (it_transmission_history != transmission_history.end()) {
- md.fidx = it_transmission_history->second;
- }
- else {
- md.fidx = fidx;
+ it_transmission_history = transmission_history.find(pDirent->d_name);
+ if (it_transmission_history != transmission_history.end()) {
+ md.fidx = it_transmission_history->second;
+ }
+ else {
+ md.fidx = fidx;
- // update transmission history
- transmission_history[pDirent->d_name] = md.fidx;
+ // update transmission history
+ transmission_history[pDirent->d_name] = md.fidx;
- if (fidx == MAXSLIDEID) {
+ if (fidx == MAXSLIDEID) {
fidx = 0;
+ }
else {
fidx++;
}
- }
+ }
slides_to_transmit.push_back(md);