| 50 | // ============================================================================= |
| 51 | |
| 52 | void StreamThreadTSWriter::doStartStreaming(int UNUSED(clientID)) { |
| 53 | _file.open(_filePath, std::ofstream::binary); |
| 54 | } |
| 55 | |
| 56 | bool StreamThreadTSWriter::writeDataToOutputDevice(mpegts::PacketBuffer &buffer, StreamClient &UNUSED(client)) { |
| 57 | const unsigned char *tsBuffer = buffer.getTSReadBufferPtr(); |