diff options
| author | Stefan Pöschel <github@basicmaster.de> | 2019-02-12 10:33:17 +0100 | 
|---|---|---|
| committer | Stefan Pöschel <github@basicmaster.de> | 2019-02-12 10:33:17 +0100 | 
| commit | d5306b83e15c1663aa4fe0a4bc1eec184f30d04e (patch) | |
| tree | 3f0592da42de2e5919bc07b7888cc9ed01c3b782 /src/pad_common.cpp | |
| parent | f7b67792e7295738a20f8b8d15ce63dbd9a052bd (diff) | |
| download | ODR-PadEnc-d5306b83e15c1663aa4fe0a4bc1eec184f30d04e.tar.gz ODR-PadEnc-d5306b83e15c1663aa4fe0a4bc1eec184f30d04e.tar.bz2 ODR-PadEnc-d5306b83e15c1663aa4fe0a4bc1eec184f30d04e.zip | |
Add option to output X-PAD in intervals only
Also hide PADPacketizer::GetPAD().
Diffstat (limited to 'src/pad_common.cpp')
| -rw-r--r-- | src/pad_common.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/pad_common.cpp b/src/pad_common.cpp index 0fccb7f..0c3f0b3 100644 --- a/src/pad_common.cpp +++ b/src/pad_common.cpp @@ -3,7 +3,7 @@      Copyright (C) 2014, 2015 Matthias P. Braendli (http://opendigitalradio.org) -    Copyright (C) 2015, 2016, 2017, 2018 Stefan Pöschel (http://opendigitalradio.org) +    Copyright (C) 2015-2019 Stefan Pöschel (http://opendigitalradio.org)      This program is free software: you can redistribute it and/or modify      it under the terms of the GNU General Public License as published by @@ -140,13 +140,13 @@ pad_t* PADPacketizer::GetPAD() {  } -void PADPacketizer::WriteAllPADs(int output_fd, int limit, bool output_sole_fpad) { +void PADPacketizer::WriteAllPADs(int output_fd, int limit, bool output_sole_fpad, bool output_xpad) {      size_t error_count = 0;      size_t error_bytes = 0;      // output a limited amount of PADs (-1 = no limit)      for (int i = 0; i != limit; i++) { -        pad_t* pad = GetPAD(); +        pad_t* pad = output_xpad ? GetPAD() : FlushPAD();          // if only F-PAD present, abort (if desired)          if (pad->back() == FPAD_LEN && !output_sole_fpad) { | 
