aboutsummaryrefslogtreecommitdiffstats
path: root/src/mot-encoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mot-encoder.cpp')
-rw-r--r--src/mot-encoder.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp
index 2de98c7..bef84e4 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -319,18 +319,21 @@ int main(int argc, char *argv[])
}
}
+ // Always retransmit DLS after each slide, we want it to be updated frequently
+ writeDLS(output_fd, dls_file, padlen);
+
sleep(sleepdelay);
}
slides_to_transmit.resize(0);
}
-
- if (dls_file) {
+ else if (dls_file) { // only DLS
// Always retransmit DLS, we want it to be updated frequently
writeDLS(output_fd, dls_file, padlen);
- }
- sleep(sleepdelay);
+ sleep(sleepdelay);
+
+ }
if (pDir) {
closedir(pDir);