From f1ed7aea4a808572e8ac5c1ea084c4e15fa04776 Mon Sep 17 00:00:00 2001 From: Luigi Yucheng LIU Date: Tue, 26 Aug 2014 00:29:57 +0800 Subject: Syntax error correction --- src/mot-encoder.cpp | 21 +++++++++++---------- 1 file 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); -- cgit v1.2.3