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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 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
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/capture/video/win/video_capture_device_mf_win.h" 5 #include "media/capture/video/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/location.h" 10 #include "base/location.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // If the device has been unplugged, the Flush() won't trigger the event 286 // If the device has been unplugged, the Flush() won't trigger the event
287 // and a timeout will happen. 287 // and a timeout will happen.
288 // TODO(tommi): Hook up the IMFMediaEventGenerator notifications API and 288 // TODO(tommi): Hook up the IMFMediaEventGenerator notifications API and
289 // do not wait at all after getting MEVideoCaptureDeviceRemoved event. 289 // do not wait at all after getting MEVideoCaptureDeviceRemoved event.
290 // See issue/226396. 290 // See issue/226396.
291 if (wait) 291 if (wait)
292 flushed.TimedWait(base::TimeDelta::FromMilliseconds(kFlushTimeOutInMs)); 292 flushed.TimedWait(base::TimeDelta::FromMilliseconds(kFlushTimeOutInMs));
293 } 293 }
294 294
295 void VideoCaptureDeviceMFWin::OnIncomingCapturedData( 295 void VideoCaptureDeviceMFWin::OnIncomingCapturedData(
296 const uint8* data, 296 const uint8_t* data,
297 int length, 297 int length,
298 int rotation, 298 int rotation,
299 const base::TimeTicks& time_stamp) { 299 const base::TimeTicks& time_stamp) {
300 base::AutoLock lock(lock_); 300 base::AutoLock lock(lock_);
301 if (data && client_.get()) { 301 if (data && client_.get()) {
302 client_->OnIncomingCapturedData(data, length, capture_format_, rotation, 302 client_->OnIncomingCapturedData(data, length, capture_format_, rotation,
303 time_stamp); 303 time_stamp);
304 } 304 }
305 305
306 if (capture_) { 306 if (capture_) {
(...skipping 15 matching lines...) Expand all
322 HRESULT hr) { 322 HRESULT hr) {
323 if (client_.get()) { 323 if (client_.get()) {
324 client_->OnError( 324 client_->OnError(
325 from_here, 325 from_here,
326 base::StringPrintf("VideoCaptureDeviceMFWin: %s", 326 base::StringPrintf("VideoCaptureDeviceMFWin: %s",
327 logging::SystemErrorCodeToString(hr).c_str())); 327 logging::SystemErrorCodeToString(hr).c_str()));
328 } 328 }
329 } 329 }
330 330
331 } // namespace media 331 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698