| 42 | // ============================================================================= |
| 43 | |
| 44 | Stream::Stream(int streamID, input::SpDevice device, decrypt::dvbapi::SpClient decrypt) : |
| 45 | _streamID(streamID), |
| 46 | _streamingType(StreamingType::NONE), |
| 47 | _enabled(true), |
| 48 | _streamInUse(false), |
| 49 | _streamActive(false), |
| 50 | _client(new StreamClient[MAX_CLIENTS]), |
| 51 | _streaming(nullptr), |
| 52 | _decrypt(decrypt), |
| 53 | _device(device), |
| 54 | _ssrc((uint32_t)(rand_r(&seedp) % 0xffff)), |
| 55 | _spc(0), |
| 56 | _soc(0), |
| 57 | _timestamp(0), |
| 58 | _rtp_payload(0.0), |
| 59 | _rtcpSignalUpdate(1) { |
| 60 | ASSERT(device); |
| 61 | for (std::size_t i = 0; i < MAX_CLIENTS; ++i) { |
| 62 | _client[i].setStreamIDandClientID(streamID, i); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | Stream::~Stream() { |
| 67 | DELETE_ARRAY(_client); |
nothing calls this directly
no test coverage detected