7 #include <packager/media/replicator/replicator.h>
9 #include <absl/log/check.h>
10 #include <absl/log/log.h>
15 Status Replicator::InitializeInternal() {
19 Status Replicator::Process(std::unique_ptr<StreamData> stream_data) {
22 for (
auto& out : output_handlers()) {
23 std::unique_ptr<StreamData> copy(
new StreamData(*stream_data));
24 copy->stream_index = out.first;
26 status.Update(
Dispatch(std::move(copy)));
32 bool Replicator::ValidateOutputStreamIndex(
size_t )
const {
36 Status Replicator::OnFlushRequest(
size_t input_stream_index) {
37 DCHECK_EQ(input_stream_index, 0u);
All the methods that are virtual are virtual for mocking.