2022-08-26 15:44:59 +00:00
|
|
|
// Copyright 2017 Google LLC. All rights reserved.
|
2017-08-16 17:25:53 +00:00
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
2023-10-10 23:51:11 +00:00
|
|
|
#include <packager/media/origin/origin_handler.h>
|
2017-08-16 17:25:53 +00:00
|
|
|
|
2023-10-14 16:36:01 +00:00
|
|
|
#include <packager/status.h>
|
2022-11-30 17:43:58 +00:00
|
|
|
|
2017-08-16 17:25:53 +00:00
|
|
|
namespace shaka {
|
|
|
|
namespace media {
|
|
|
|
|
|
|
|
// Origin handlers are always at the start of a pipeline (chain or handlers)
|
|
|
|
// and therefore should never receive input via |Process|.
|
2022-11-30 17:43:58 +00:00
|
|
|
Status OriginHandler::Process(std::unique_ptr<StreamData> /* ignored */) {
|
2017-08-16 17:25:53 +00:00
|
|
|
return Status(error::INTERNAL_ERROR,
|
|
|
|
"An origin handlers should never be a downstream handler.");
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace media
|
|
|
|
} // namespace shaka
|