blob: 07f44d72b04221ea7cf280febc63115f1012aa0e [file] [log] [blame]
// Copyright 2024 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file
#include "quiche/quic/moqt/moqt_track.h"
#include "quiche/quic/moqt/moqt_messages.h"
namespace moqt {
bool RemoteTrack::CheckDataStreamType(MoqtDataStreamType type) {
if (data_stream_type_.has_value()) {
return data_stream_type_.value() == type;
}
data_stream_type_ = type;
return true;
}
} // namespace moqt