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

Side by Side Diff: media/renderers/renderer_impl.h

Issue 2570773002: Fix crash when pipeline is stopped while video restart is pending (Closed)
Patch Set: Created 4 years 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/renderers/renderer_impl.cc » ('j') | media/renderers/renderer_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERERS_RENDERER_IMPL_H_ 5 #ifndef MEDIA_RENDERERS_RENDERER_IMPL_H_
6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 private: 77 private:
78 class RendererClientInternal; 78 class RendererClientInternal;
79 79
80 enum State { 80 enum State {
81 STATE_UNINITIALIZED, 81 STATE_UNINITIALIZED,
82 STATE_INIT_PENDING_CDM, // Initialization is waiting for the CDM to be set. 82 STATE_INIT_PENDING_CDM, // Initialization is waiting for the CDM to be set.
83 STATE_INITIALIZING, // Initializing audio/video renderers. 83 STATE_INITIALIZING, // Initializing audio/video renderers.
84 STATE_FLUSHING, 84 STATE_FLUSHING,
85 STATE_PLAYING, 85 STATE_PLAYING,
86 STATE_SHUTDOWN,
86 STATE_ERROR 87 STATE_ERROR
87 }; 88 };
88 89
89 bool GetWallClockTimes(const std::vector<base::TimeDelta>& media_timestamps, 90 bool GetWallClockTimes(const std::vector<base::TimeDelta>& media_timestamps,
90 std::vector<base::TimeTicks>* wall_clock_times); 91 std::vector<base::TimeTicks>* wall_clock_times);
91 92
92 bool HasEncryptedStream(); 93 bool HasEncryptedStream();
93 94
94 void FinishInitialization(PipelineStatus status); 95 void FinishInitialization(PipelineStatus status);
95 96
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 201
201 base::WeakPtr<RendererImpl> weak_this_; 202 base::WeakPtr<RendererImpl> weak_this_;
202 base::WeakPtrFactory<RendererImpl> weak_factory_; 203 base::WeakPtrFactory<RendererImpl> weak_factory_;
203 204
204 DISALLOW_COPY_AND_ASSIGN(RendererImpl); 205 DISALLOW_COPY_AND_ASSIGN(RendererImpl);
205 }; 206 };
206 207
207 } // namespace media 208 } // namespace media
208 209
209 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ 210 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/renderers/renderer_impl.cc » ('j') | media/renderers/renderer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698