From 31d30df661bc3b9082082084d702a76117370555 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 25 Jul 2014 12:52:10 +0200 Subject: mot-encoder: fix transmission of DLS when slides are enabled --- src/mot-encoder.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp index bef84e4..b885780 100644 --- a/src/mot-encoder.cpp +++ b/src/mot-encoder.cpp @@ -302,6 +302,12 @@ int main(int argc, char *argv[]) // Sort the list in alphabetic order slides_to_transmit.sort(); + if (dls_file) { + // Maybe we have no slides, always update DLS + writeDLS(output_fd, dls_file, padlen); + sleep(sleepdelay); + } + // Encode the slides std::list::iterator it; for (it = slides_to_transmit.begin(); @@ -320,7 +326,9 @@ 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); + if (dls_file) { + writeDLS(output_fd, dls_file, padlen); + } sleep(sleepdelay); } -- cgit v1.2.3