From c3648232db3bb679be2d967688d311a221c5cf5c Mon Sep 17 00:00:00 2001
From: philippegorley <philippe.gorley@savoirfairelinux.com>
Date: Fri, 29 Sep 2017 12:41:08 -0400
Subject: [PATCH] osxvideo: fix avfoundation device name

Fixes a bug introduced in "osxvideo: use avfoundation indev" where the
video device didn't have the right name.

Change-Id: Ib2b31191925e89b6478a61812667ed5f86acc5d2
Reviewed-by: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
---
 src/media/video/osxvideo/video_device_impl.mm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/media/video/osxvideo/video_device_impl.mm b/src/media/video/osxvideo/video_device_impl.mm
index 5fc7774e8b..7b083303ac 100644
--- a/src/media/video/osxvideo/video_device_impl.mm
+++ b/src/media/video/osxvideo/video_device_impl.mm
@@ -96,7 +96,7 @@ VideoDeviceImpl::getDeviceParams() const
 {
     DeviceParams params;
     params.name = [[avDevice_ localizedName] UTF8String];
-    params.input = device;
+    params.input = params.name;
     params.format = "avfoundation";
 
     params.width = current_size_.first;
-- 
GitLab