fix: The CVTE customer requests to block irrelevant cameras.#452
fix: The CVTE customer requests to block irrelevant cameras.#452lichaofan2008 wants to merge 1 commit intolinuxdeepin:release/eaglefrom
Conversation
There was a problem hiding this comment.
Sorry @lichaofan2008, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lichaofan2008 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
The CVTE customer requests to block irrelevant cameras and retain only the camera named "Smart Camera : Smart Camera" for camera use. CVTE客户要求屏蔽无关摄像头,只保留名为Smart Camera : Smart Camera的摄像头供相机使用。 Bug: https://pms.uniontech.com/bug-view-349401.html
c07876d to
68db4e7
Compare
deepin pr auto review这段代码的修改主要涉及三个文件: 以下是对这段代码的详细审查意见,包括语法逻辑、代码质量、代码性能和代码安全四个方面: 1. 语法逻辑v4l2_core.c:
v4l2_devices.c:
videowidget.cpp:
2. 代码质量
3. 代码性能
4. 代码安全
综合改进建议
总结: |
| static const char *SMART_CAMERA_NAME = "Smart Camera : Smart Camera"; | ||
|
|
||
| const char *vid = getUdev()->m_udev_device_get_sysattr_value(dev, "idVendor"); | ||
| const char *pid = getUdev()->m_udev_device_get_sysattr_value(dev, "idProduct"); |
There was a problem hiding this comment.
不应该在 libcam里面搞特殊定制,特殊定制应该在 camera 业务代码里面实施,通过osconfig 来做
The CVTE customer requests to block irrelevant cameras and retain only the camera named "Smart Camera : Smart Camera" for camera use.
CVTE客户要求屏蔽无关摄像头,只保留名为Smart Camera : Smart Camera的摄像头供相机使用。
Bug: https://pms.uniontech.com/bug-view-349401.html