DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
text_track_config.cc
1 // Copyright 2013 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 "packager/media/base/text_track_config.h"
6 
7 namespace edash_packager {
8 namespace media {
9 
10 TextTrackConfig::TextTrackConfig()
11  : kind_(kTextNone) {
12 }
13 
14 TextTrackConfig::TextTrackConfig(TextKind kind,
15  const std::string& label,
16  const std::string& language,
17  const std::string& id)
18  : kind_(kind),
19  label_(label),
20  language_(language),
21  id_(id) {
22 }
23 
24 bool TextTrackConfig::Matches(const TextTrackConfig& config) const {
25  return config.kind() == kind_ &&
26  config.label() == label_ &&
27  config.language() == language_ &&
28  config.id() == id_;
29 }
30 
31 } // namespace media
32 } // namespace edash_packager