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

Side by Side Diff: content/renderer/media/webmediaplayer_impl.cc

Issue 415273002: Fix various uninitialized member variables in media code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/media/crypto/key_systems.cc ('k') | media/filters/audio_renderer_impl.cc » ('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 2013 The Chromium Authors. All rights reserved. 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 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 #include "content/renderer/media/webmediaplayer_impl.h" 5 #include "content/renderer/media/webmediaplayer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 base::WeakPtr<WebMediaPlayerDelegate> delegate, 169 base::WeakPtr<WebMediaPlayerDelegate> delegate,
170 const WebMediaPlayerParams& params) 170 const WebMediaPlayerParams& params)
171 : frame_(frame), 171 : frame_(frame),
172 network_state_(WebMediaPlayer::NetworkStateEmpty), 172 network_state_(WebMediaPlayer::NetworkStateEmpty),
173 ready_state_(WebMediaPlayer::ReadyStateHaveNothing), 173 ready_state_(WebMediaPlayer::ReadyStateHaveNothing),
174 main_loop_(base::MessageLoopProxy::current()), 174 main_loop_(base::MessageLoopProxy::current()),
175 media_loop_( 175 media_loop_(
176 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy()), 176 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy()),
177 media_log_(new RenderMediaLog()), 177 media_log_(new RenderMediaLog()),
178 pipeline_(media_loop_, media_log_.get()), 178 pipeline_(media_loop_, media_log_.get()),
179 load_type_(LoadTypeURL),
179 opaque_(false), 180 opaque_(false),
180 paused_(true), 181 paused_(true),
181 seeking_(false), 182 seeking_(false),
182 playback_rate_(0.0f), 183 playback_rate_(0.0f),
183 pending_seek_(false), 184 pending_seek_(false),
184 pending_seek_seconds_(0.0f), 185 pending_seek_seconds_(0.0f),
185 should_notify_time_changed_(false), 186 should_notify_time_changed_(false),
186 client_(client), 187 client_(client),
187 delegate_(delegate), 188 delegate_(delegate),
188 defer_load_cb_(params.defer_load_cb()), 189 defer_load_cb_(params.defer_load_cb()),
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 compositor_task_runner_->PostTask(FROM_HERE, 1364 compositor_task_runner_->PostTask(FROM_HERE,
1364 base::Bind(&GetCurrentFrameAndSignal, 1365 base::Bind(&GetCurrentFrameAndSignal,
1365 base::Unretained(compositor_), 1366 base::Unretained(compositor_),
1366 &video_frame, 1367 &video_frame,
1367 &event)); 1368 &event));
1368 event.Wait(); 1369 event.Wait();
1369 return video_frame; 1370 return video_frame;
1370 } 1371 }
1371 1372
1372 } // namespace content 1373 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/key_systems.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698