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

Side by Side Diff: media/video/capture/win/pin_base_win.cc

Issue 8965054: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "media/video/capture/win/pin_base_win.h" 5 #include "media/video/capture/win/pin_base_win.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace media { 9 namespace media {
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 CoTaskMemFree(types[i]); 108 CoTaskMemFree(types[i]);
109 } 109 }
110 } 110 }
111 111
112 scoped_refptr<PinBase> pin_; 112 scoped_refptr<PinBase> pin_;
113 int index_; 113 int index_;
114 }; 114 };
115 115
116 PinBase::PinBase(IBaseFilter* owner) 116 PinBase::PinBase(IBaseFilter* owner)
117 : owner_(owner) { 117 : owner_(owner) {
118 memset(&current_media_type_, 0, sizeof(current_media_type_));
118 } 119 }
119 120
120 PinBase::~PinBase() { 121 PinBase::~PinBase() {
121 } 122 }
122 123
123 void PinBase::SetOwner(IBaseFilter* owner) { 124 void PinBase::SetOwner(IBaseFilter* owner) {
124 owner_ = owner; 125 owner_ = owner;
125 } 126 }
126 127
127 // Called on an output pin to and establish a 128 // Called on an output pin to and establish a
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 base::RefCounted<PinBase>::AddRef(); 273 base::RefCounted<PinBase>::AddRef();
273 return 1; 274 return 1;
274 } 275 }
275 276
276 STDMETHODIMP_(ULONG) PinBase::Release() { 277 STDMETHODIMP_(ULONG) PinBase::Release() {
277 base::RefCounted<PinBase>::Release(); 278 base::RefCounted<PinBase>::Release();
278 return 1; 279 return 1;
279 } 280 }
280 281
281 } // namespace media 282 } // namespace media
OLDNEW
« no previous file with comments | « content/renderer/websharedworker_proxy.h ('k') | media/video/capture/win/video_capture_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698