shaka-packager/packager/media/origin/origin_handler.cc

23 lines
714 B
C++

// Copyright 2017 Google LLC. All rights reserved.
//
// 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
#include <packager/media/origin/origin_handler.h>
#include <packager/status.h>
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|.
Status OriginHandler::Process(std::unique_ptr<StreamData> /* ignored */) {
return Status(error::INTERNAL_ERROR,
"An origin handlers should never be a downstream handler.");
}
} // namespace media
} // namespace shaka