Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Side by Side Diff: media/base/demuxer.h

Issue 575643002: Initialize media timeline correctly for positive start times. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_DEMUXER_H_ 5 #ifndef MEDIA_BASE_DEMUXER_H_
6 #define MEDIA_BASE_DEMUXER_H_ 6 #define MEDIA_BASE_DEMUXER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // callback upon completion. 66 // callback upon completion.
67 virtual void Seek(base::TimeDelta time, 67 virtual void Seek(base::TimeDelta time,
68 const PipelineStatusCB& status_cb) = 0; 68 const PipelineStatusCB& status_cb) = 0;
69 69
70 // Stops this demuxer. 70 // Stops this demuxer.
71 // 71 //
72 // After this call the demuxer may be destroyed. It is illegal to call any 72 // After this call the demuxer may be destroyed. It is illegal to call any
73 // method (including Stop()) after a demuxer has stopped. 73 // method (including Stop()) after a demuxer has stopped.
74 virtual void Stop() = 0; 74 virtual void Stop() = 0;
75 75
76 // Returns the starting time for the media file; it's always positive.
77 virtual base::TimeDelta GetStartTime() const = 0;
78
76 // Returns Time represented by presentation timestamp 0. 79 // Returns Time represented by presentation timestamp 0.
77 // If the timstamps are not associated with a Time, then 80 // If the timstamps are not associated with a Time, then
78 // a null Time is returned. 81 // a null Time is returned.
79 virtual base::Time GetTimelineOffset() const = 0; 82 virtual base::Time GetTimelineOffset() const = 0;
80 83
81 private: 84 private:
82 DISALLOW_COPY_AND_ASSIGN(Demuxer); 85 DISALLOW_COPY_AND_ASSIGN(Demuxer);
83 }; 86 };
84 87
85 } // namespace media 88 } // namespace media
86 89
87 #endif // MEDIA_BASE_DEMUXER_H_ 90 #endif // MEDIA_BASE_DEMUXER_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698