OLD | NEW |
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 Loading... |
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(¤t_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 Loading... |
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 |
OLD | NEW |