summaryrefslogtreecommitdiffstats
path: root/src/mot-encoder.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-07-25 12:52:10 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-07-25 12:52:48 +0200
commit31d30df661bc3b9082082084d702a76117370555 (patch)
tree60da77b744649a35fe945b6efa8edb368e02bc1d /src/mot-encoder.cpp
parentc38f796c73e04addce59be483adb3af8b0889a99 (diff)
downloadfdk-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/mot-encoder.cpp')
-rw-r--r--src/mot-encoder.cpp10
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);
}