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

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

Issue 83413006: Replace LOG(INFO) with VLOG(0), throughout *media* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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) 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/video_capture_device_mf_win.h" 5 #include "media/video/capture/win/video_capture_device_mf_win.h"
6 6
7 #include <mfapi.h> 7 #include <mfapi.h>
8 #include <mferror.h> 8 #include <mferror.h>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 HRESULT hr = S_OK; 350 HRESULT hr = S_OK;
351 if (!reader_ || FAILED(hr = FillCapabilities(reader_, &capabilities))) { 351 if (!reader_ || FAILED(hr = FillCapabilities(reader_, &capabilities))) {
352 OnError(hr); 352 OnError(hr);
353 return; 353 return;
354 } 354 }
355 355
356 VideoCaptureCapabilityWin found_capability = 356 VideoCaptureCapabilityWin found_capability =
357 capabilities.GetBestMatchedCapability(capture_format.width, 357 capabilities.GetBestMatchedCapability(capture_format.width,
358 capture_format.height, 358 capture_format.height,
359 capture_format.frame_rate); 359 capture_format.frame_rate);
360 DLOG(INFO) << "Chosen capture format= (" << found_capability.width << "x" 360 DVLOG(0) << "Chosen capture format= (" << found_capability.width << "x"
361 << found_capability.height << ")@(" 361 << found_capability.height << ")@("
362 << found_capability.frame_rate_numerator << "/" 362 << found_capability.frame_rate_numerator << "/"
363 << found_capability.frame_rate_denominator << ")fps"; 363 << found_capability.frame_rate_denominator << ")fps";
364 364
365 ScopedComPtr<IMFMediaType> type; 365 ScopedComPtr<IMFMediaType> type;
366 if (FAILED(hr = reader_->GetNativeMediaType( 366 if (FAILED(hr = reader_->GetNativeMediaType(
367 MF_SOURCE_READER_FIRST_VIDEO_STREAM, found_capability.stream_index, 367 MF_SOURCE_READER_FIRST_VIDEO_STREAM, found_capability.stream_index,
368 type.Receive())) || 368 type.Receive())) ||
369 FAILED(hr = reader_->SetCurrentMediaType( 369 FAILED(hr = reader_->SetCurrentMediaType(
370 MF_SOURCE_READER_FIRST_VIDEO_STREAM, NULL, type))) { 370 MF_SOURCE_READER_FIRST_VIDEO_STREAM, NULL, type))) {
371 OnError(hr); 371 OnError(hr);
372 return; 372 return;
373 } 373 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 } 440 }
441 } 441 }
442 442
443 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) { 443 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) {
444 DLOG(ERROR) << "VideoCaptureDeviceMFWin: " << std::hex << hr; 444 DLOG(ERROR) << "VideoCaptureDeviceMFWin: " << std::hex << hr;
445 if (client_.get()) 445 if (client_.get())
446 client_->OnError(); 446 client_->OnError();
447 } 447 }
448 448
449 } // namespace media 449 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698