-
Notifications
You must be signed in to change notification settings - Fork 5
Topic/rdkmve 1680 test #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||||||||||||||||||||||
| /* | ||||||||||||||||||||||||||
| * If not stated otherwise in this file or this component's LICENSE file the | ||||||||||||||||||||||||||
| * following copyright and licenses apply: | ||||||||||||||||||||||||||
|
Check failure on line 3 in ds/host.cpp
|
||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||
| * Copyright 2025 RDK Management | ||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||
|
|
@@ -217,7 +217,11 @@ | |||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||
| VideoOutputPort &Host::getVideoOutputPort(int id) | ||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Enter Host::getVideoOutputPort()\n"); | ||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Requested port name: %s\n", name.c_str()); | ||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Calling VideoOutputPortConfig::getPort()...\n"); | ||||||||||||||||||||||||||
| return VideoOutputPortConfig::getInstance().getPort(id); | ||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] getPort() returned successfully for: %s\n", name.c_str()); | ||||||||||||||||||||||||||
|
Comment on lines
+221
to
+224
|
||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Requested port name: %s\n", name.c_str()); | |
| printf("Aishwarya [DEBUG] Calling VideoOutputPortConfig::getPort()...\n"); | |
| return VideoOutputPortConfig::getInstance().getPort(id); | |
| printf("Aishwarya [DEBUG] getPort() returned successfully for: %s\n", name.c_str()); | |
| printf("Aishwarya [DEBUG] Calling VideoOutputPortConfig::getPort()...\n"); | |
| return VideoOutputPortConfig::getInstance().getPort(id); |
Copilot
AI
Feb 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug logging statements should not be committed to production code. These appear to be temporary debugging statements added during development. Consider using a proper logging framework or removing these statements before merging. If they must remain, they should be wrapped in a debug flag check or removed entirely.
| printf("Aishwarya [DEBUG] Enter Host::getVideoOutputPort()\n"); | |
| printf("Aishwarya [DEBUG] Requested port name: %s\n", name.c_str()); | |
| printf("Aishwarya [DEBUG] Calling VideoOutputPortConfig::getPort()...\n"); | |
| return VideoOutputPortConfig::getInstance().getPort(id); | |
| printf("Aishwarya [DEBUG] getPort() returned successfully for: %s\n", name.c_str()); | |
| return VideoOutputPortConfig::getInstance().getPort(id); |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * If not stated otherwise in this file or this component's LICENSE file the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * following copyright and licenses apply: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Check failure on line 3 in ds/videoOutputPort.cpp
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * Copyright 2016 RDK Management | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -465,12 +465,21 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void VideoOutputPort::setResolution(const std::string &resolutionName, bool persist/* = true*/, bool isIgnoreEdid/* = false*/) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Enter setResolution()\n"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("ResOverride VideoOutputPort::setResolution resolutionName:%s persist:%d isIgnoreEdid:%d line:%d\r\n", resolutionName.c_str(), persist, isIgnoreEdid, __LINE__); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (0 && resolutionName.compare(_resolution) == 0) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Resolution already set (%s). Skipping.\n", _resolution.c_str()); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Getting VideoResolution instance...\n"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| VideoResolution newResolution = VideoResolution::getInstance(resolutionName, isIgnoreEdid); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] VideoResolution created successfully\n"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya[DEBUG] AspectRatio: %d\n", newResolution.getAspectRatio().getId()); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya[DEBUG] FrameRate: %d\n", newResolution.getFrameRate().getId()); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya[DEBUG] Interlaced: %d\n", newResolution.isInterlaced()); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya[DEBUG] PixelResolution: %d\n", newResolution.getPixelResolution().getId()); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya[DEBUG] StereoMode: %d\n", newResolution.getStereoscopicMode().getId()); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+478
to
+482
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya[DEBUG] AspectRatio: %d\n", newResolution.getAspectRatio().getId()); | |
| printf("Aishwarya[DEBUG] FrameRate: %d\n", newResolution.getFrameRate().getId()); | |
| printf("Aishwarya[DEBUG] Interlaced: %d\n", newResolution.isInterlaced()); | |
| printf("Aishwarya[DEBUG] PixelResolution: %d\n", newResolution.getPixelResolution().getId()); | |
| printf("Aishwarya[DEBUG] StereoMode: %d\n", newResolution.getStereoscopicMode().getId()); | |
| printf("Aishwarya [DEBUG] AspectRatio: %d\n", newResolution.getAspectRatio().getId()); | |
| printf("Aishwarya [DEBUG] FrameRate: %d\n", newResolution.getFrameRate().getId()); | |
| printf("Aishwarya [DEBUG] Interlaced: %d\n", newResolution.isInterlaced()); | |
| printf("Aishwarya [DEBUG] PixelResolution: %d\n", newResolution.getPixelResolution().getId()); | |
| printf("Aishwarya [DEBUG] StereoMode: %d\n", newResolution.getStereoscopicMode().getId()); |
Copilot
AI
Feb 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug logging statements should not be committed to production code. These appear to be temporary debugging statements added during development. Consider using a proper logging framework or removing these statements before merging. If they must remain, they should be wrapped in a debug flag check or removed entirely.
| printf("Aishwarya [DEBUG] Enter setResolution()\n"); | |
| printf("ResOverride VideoOutputPort::setResolution resolutionName:%s persist:%d isIgnoreEdid:%d line:%d\r\n", resolutionName.c_str(), persist, isIgnoreEdid, __LINE__); | |
| if (0 && resolutionName.compare(_resolution) == 0) { | |
| printf("Aishwarya [DEBUG] Resolution already set (%s). Skipping.\n", _resolution.c_str()); | |
| return; | |
| } | |
| printf("Aishwarya [DEBUG] Getting VideoResolution instance...\n"); | |
| VideoResolution newResolution = VideoResolution::getInstance(resolutionName, isIgnoreEdid); | |
| printf("Aishwarya [DEBUG] VideoResolution created successfully\n"); | |
| printf("Aishwarya[DEBUG] AspectRatio: %d\n", newResolution.getAspectRatio().getId()); | |
| printf("Aishwarya[DEBUG] FrameRate: %d\n", newResolution.getFrameRate().getId()); | |
| printf("Aishwarya[DEBUG] Interlaced: %d\n", newResolution.isInterlaced()); | |
| printf("Aishwarya[DEBUG] PixelResolution: %d\n", newResolution.getPixelResolution().getId()); | |
| printf("Aishwarya[DEBUG] StereoMode: %d\n", newResolution.getStereoscopicMode().getId()); | |
| if (0 && resolutionName.compare(_resolution) == 0) { | |
| return; | |
| } | |
| VideoResolution newResolution = VideoResolution::getInstance(resolutionName, isIgnoreEdid); |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||||||||||||||||||||||||||||||||||||||
| /* | ||||||||||||||||||||||||||||||||||||||||||
| * If not stated otherwise in this file or this component's LICENSE file the | ||||||||||||||||||||||||||||||||||||||||||
| * following copyright and licenses apply: | ||||||||||||||||||||||||||||||||||||||||||
|
Check failure on line 3 in ds/videoOutputPortConfig.cpp
|
||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||
| * Copyright 2016 RDK Management | ||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -123,12 +123,21 @@ | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| VideoOutputPort &VideoOutputPortConfig::getPort(const std::string & name) | ||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||
| printf("\n Aishwarya [DEBUG] Enter VideoOutputPortConfig::getPort()\n"); | ||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Requested port name: %s\n", name.c_str()); | ||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Total available ports: %zu\n", _vPorts.size()); | ||||||||||||||||||||||||||||||||||||||||||
| for (size_t i = 0; i < _vPorts.size(); i++) { | ||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Checking index %zu\n", i); | ||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Port name: %s\n", _vPorts.at(i).getName().c_str()); | ||||||||||||||||||||||||||||||||||||||||||
| if (name.compare(_vPorts.at(i).getName()) == 0) { | ||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Match found at index %zu for name: %s\n", i, name.c_str()); | ||||||||||||||||||||||||||||||||||||||||||
| return _vPorts.at(i); | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [ERROR] No matching port found for name: %s\n", name.c_str()); | ||||||||||||||||||||||||||||||||||||||||||
| printf("Aishwarya [DEBUG] Throwing IllegalArgumentException\n"); | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+126
to
+140
|
||||||||||||||||||||||||||||||||||||||||||
| printf("\n Aishwarya [DEBUG] Enter VideoOutputPortConfig::getPort()\n"); | |
| printf("Aishwarya [DEBUG] Requested port name: %s\n", name.c_str()); | |
| printf("Aishwarya [DEBUG] Total available ports: %zu\n", _vPorts.size()); | |
| for (size_t i = 0; i < _vPorts.size(); i++) { | |
| printf("Aishwarya [DEBUG] Checking index %zu\n", i); | |
| printf("Aishwarya [DEBUG] Port name: %s\n", _vPorts.at(i).getName().c_str()); | |
| if (name.compare(_vPorts.at(i).getName()) == 0) { | |
| printf("Aishwarya [DEBUG] Match found at index %zu for name: %s\n", i, name.c_str()); | |
| return _vPorts.at(i); | |
| } | |
| } | |
| printf("Aishwarya [ERROR] No matching port found for name: %s\n", name.c_str()); | |
| printf("Aishwarya [DEBUG] Throwing IllegalArgumentException\n"); | |
| for (size_t i = 0; i < _vPorts.size(); i++) { | |
| if (name.compare(_vPorts.at(i).getName()) == 0) { | |
| return _vPorts.at(i); | |
| } | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable 'name' is used in this debug statement but it does not exist in this function's scope. The function 'getVideoOutputPort(int id)' takes an 'id' parameter, not a 'name' parameter. This will cause a compilation error. If the intention is to log the id, use 'id' instead of 'name.c_str()'.