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

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

Issue 754473004: Remove implicit conversion from scoped_refptr<T> to T* in media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sink_filter_win.h" 5 #include "media/video/capture/win/sink_filter_win.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "media/video/capture/win/sink_input_pin_win.h" 8 #include "media/video/capture/win/sink_input_pin_win.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 30 matching lines...) Expand all
41 41
42 const VideoCaptureFormat& SinkFilter::ResultingFormat() { 42 const VideoCaptureFormat& SinkFilter::ResultingFormat() {
43 return input_pin_->ResultingFormat(); 43 return input_pin_->ResultingFormat();
44 } 44 }
45 45
46 size_t SinkFilter::NoOfPins() { 46 size_t SinkFilter::NoOfPins() {
47 return 1; 47 return 1;
48 } 48 }
49 49
50 IPin* SinkFilter::GetPin(int index) { 50 IPin* SinkFilter::GetPin(int index) {
51 return index == 0 ? input_pin_ : NULL; 51 return index == 0 ? input_pin_.get() : NULL;
52 } 52 }
53 53
54 STDMETHODIMP SinkFilter::GetClassID(CLSID* clsid) { 54 STDMETHODIMP SinkFilter::GetClassID(CLSID* clsid) {
55 *clsid = __uuidof(SinkFilter); 55 *clsid = __uuidof(SinkFilter);
56 return S_OK; 56 return S_OK;
57 } 57 }
58 58
59 } // namespace media 59 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698