2023-12-01 17:32:19 +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-12-01 17:32:19 +00:00
|
|
|
#include <packager/media/origin/origin_handler.h>
|
|
|
|
|
|
|
|
#include <packager/status.h>
|
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|.
|
2023-12-01 17:32:19 +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
|