Shaka Packager SDK
Loading...
Searching...
No Matches
origin_handler.cc
1// Copyright 2017 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6
7#include <packager/media/origin/origin_handler.h>
8
9#include <memory>
10
11#include <packager/media/base/media_handler.h>
12#include <packager/status.h>
13
14namespace shaka {
15namespace media {
16
17// Origin handlers are always at the start of a pipeline (chain or handlers)
18// and therefore should never receive input via |Process|.
19Status OriginHandler::Process(std::unique_ptr<StreamData> /* ignored */) {
20 return Status(error::INTERNAL_ERROR,
21 "An origin handlers should never be a downstream handler.");
22}
23
24} // namespace media
25} // namespace shaka
All the methods that are virtual are virtual for mocking.