MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / StreamThreadBase

Method StreamThreadBase

src/output/StreamThreadBase.cpp:41–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39// =============================================================================
40
41StreamThreadBase::StreamThreadBase(const std::string &protocol, StreamInterface &stream) :
42 ThreadBase(StringConverter::getFormattedString("Streaming%d", stream.getStreamID())),
43 _stream(stream),
44 _protocol(protocol),
45 _state(State::Paused),
46 _clientID(0),
47 _cseq(0),
48 _writeIndex(0),
49 _readIndex(0),
50 _sendInterval(100) {
51 // Initialize all TS packets
52 uint32_t ssrc = _stream.getSSRC();
53 long timestamp = _stream.getTimestamp();
54 for (size_t i = 0; i < MAX_BUF; ++i) {
55 _tsBuffer[i].initialize(ssrc, timestamp);
56 }
57}
58
59StreamThreadBase::~StreamThreadBase() {
60#ifdef LIBDVBCSA

Callers

nothing calls this directly

Calls 4

getSSRCMethod · 0.80
getTimestampMethod · 0.80
getStreamIDMethod · 0.45
initializeMethod · 0.45

Tested by

no test coverage detected