/src/mozilla-central/dom/media/MediaStreamVideoSink.cpp
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 | | #include "MediaStreamVideoSink.h" |
7 | | |
8 | | #include "VideoSegment.h" |
9 | | |
10 | | namespace mozilla { |
11 | | void |
12 | | MediaStreamVideoSink::NotifyRealtimeTrackData(MediaStreamGraph* aGraph, |
13 | | StreamTime aTrackOffset, |
14 | | const MediaSegment& aMedia) |
15 | 0 | { |
16 | 0 | if (aMedia.GetType() == MediaSegment::VIDEO) { |
17 | 0 | SetCurrentFrames(static_cast<const VideoSegment&>(aMedia)); |
18 | 0 | } |
19 | 0 | } |
20 | | |
21 | | } // namespace mozilla |