#include "base/mac/scoped_nsobject.h"
#include "base/threading/thread_checker.h"
#include "content/public/browser/browser_thread.h"
-#import "media/video/capture/mac/avfoundation_glue.h"
+#import "media/base/mac/avfoundation_glue.h"
using content::BrowserThread;
// Enumerate the devices in Device thread and post the observers start to be
// done on UI thread. The devices array is retained in |device_thread| and
// released in DoStartObserver().
- base::PostTaskAndReplyWithResult(device_thread, FROM_HERE,
+ base::PostTaskAndReplyWithResult(
+ device_thread.get(),
+ FROM_HERE,
base::BindBlock(^{ return [[AVCaptureDeviceGlue devices] retain]; }),
base::Bind(&SuspendObserverDelegate::DoStartObserver, this));
}
// Enumerate the devices in Device thread and post the consolidation of the
// new devices and the old ones to be done on UI thread. The devices array
// is retained in |device_thread| and released in DoOnDeviceChanged().
- PostTaskAndReplyWithResult(device_thread, FROM_HERE,
+ PostTaskAndReplyWithResult(
+ device_thread.get(),
+ FROM_HERE,
base::BindBlock(^{ return [[AVCaptureDeviceGlue devices] retain]; }),
base::Bind(&SuspendObserverDelegate::DoOnDeviceChanged, this));
}