diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-07-25 12:52:10 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-07-25 12:52:48 +0200 |
commit | 31d30df661bc3b9082082084d702a76117370555 (patch) | |
tree | 60da77b744649a35fe945b6efa8edb368e02bc1d /src | |
parent | c38f796c73e04addce59be483adb3af8b0889a99 (diff) | |
download | fdk-aac-dabplus-31d30df661bc3b9082082084d702a76117370555.tar.gz fdk-aac-dabplus-31d30df661bc3b9082082084d702a76117370555.tar.bz2 fdk-aac-dabplus-31d30df661bc3b9082082084d702a76117370555.zip |
mot-encoder: fix transmission of DLS when slides are enabled
Diffstat (limited to 'src')
-rw-r--r-- | src/mot-encoder.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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<slide_metadata_t>::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); } |