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/capture/video/win/filter_base_win.h" | 5 #include "media/capture/video/win/filter_base_win.h" |
6 | 6 |
7 #pragma comment(lib, "strmiids.lib") | 7 #pragma comment(lib, "strmiids.lib") |
8 | 8 |
9 namespace media { | 9 namespace media { |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 *enum_pins = new PinEnumerator(this); | 86 *enum_pins = new PinEnumerator(this); |
87 (*enum_pins)->AddRef(); | 87 (*enum_pins)->AddRef(); |
88 return S_OK; | 88 return S_OK; |
89 } | 89 } |
90 | 90 |
91 STDMETHODIMP FilterBase::FindPin(LPCWSTR id, IPin** pin) { | 91 STDMETHODIMP FilterBase::FindPin(LPCWSTR id, IPin** pin) { |
92 return E_NOTIMPL; | 92 return E_NOTIMPL; |
93 } | 93 } |
94 | 94 |
95 STDMETHODIMP FilterBase::QueryFilterInfo(FILTER_INFO* info) { | 95 STDMETHODIMP FilterBase::QueryFilterInfo(FILTER_INFO* info) { |
96 info->pGraph = owning_graph_.get(); | 96 info->pGraph = owning_graph_.Get(); |
97 info->achName[0] = L'\0'; | 97 info->achName[0] = L'\0'; |
98 if (info->pGraph) | 98 if (info->pGraph) |
99 info->pGraph->AddRef(); | 99 info->pGraph->AddRef(); |
100 return S_OK; | 100 return S_OK; |
101 } | 101 } |
102 | 102 |
103 STDMETHODIMP FilterBase::JoinFilterGraph(IFilterGraph* graph, LPCWSTR name) { | 103 STDMETHODIMP FilterBase::JoinFilterGraph(IFilterGraph* graph, LPCWSTR name) { |
104 owning_graph_ = graph; | 104 owning_graph_ = graph; |
105 return S_OK; | 105 return S_OK; |
106 } | 106 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 ULONG STDMETHODCALLTYPE FilterBase::Release() { | 165 ULONG STDMETHODCALLTYPE FilterBase::Release() { |
166 base::RefCounted<FilterBase>::Release(); | 166 base::RefCounted<FilterBase>::Release(); |
167 return 1; | 167 return 1; |
168 } | 168 } |
169 | 169 |
170 FilterBase::~FilterBase() { | 170 FilterBase::~FilterBase() { |
171 } | 171 } |
172 | 172 |
173 } // namespace media | 173 } // namespace media |
OLD | NEW |