Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/media/TrackID.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4
 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6
 #ifndef MOZILLA_TRACK_ID_H_
7
 #define MOZILLA_TRACK_ID_H_
8
9
 namespace mozilla {
10
11
 /**
12
  * Unique ID for track within a StreamTracks. Tracks from different
13
  * StreamTrackss may have the same ID; this matters when appending StreamTrackss,
14
  * since tracks with the same ID are matched. Only IDs greater than 0 are allowed.
15
  */
16
 typedef int32_t TrackID;
17
 const TrackID TRACK_NONE = 0;
18
 const TrackID TRACK_INVALID = -1;
19
 const TrackID TRACK_ANY = -2;
20
21
0
 inline bool IsTrackIDExplicit(const TrackID& aId) {
22
0
   return aId > TRACK_NONE;
23
0
 }
24
25
} // namespace mozilla
26
27
#endif // MOZILLA_TRACK_ID_H_