blob: 07f44d72b04221ea7cf280febc63115f1012aa0e [file] [log] [blame]
martinduke4c8897f2024-06-28 07:50:04 -07001// Copyright 2024 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file
4
5#include "quiche/quic/moqt/moqt_track.h"
6
martinduke4c8897f2024-06-28 07:50:04 -07007#include "quiche/quic/moqt/moqt_messages.h"
8
9namespace moqt {
10
martinduke5ccc3792024-11-27 11:12:55 -080011bool RemoteTrack::CheckDataStreamType(MoqtDataStreamType type) {
12 if (data_stream_type_.has_value()) {
13 return data_stream_type_.value() == type;
martinduke4c8897f2024-06-28 07:50:04 -070014 }
martinduke5ccc3792024-11-27 11:12:55 -080015 data_stream_type_ = type;
martinduke4c8897f2024-06-28 07:50:04 -070016 return true;
17}
18
19} // namespace moqt