Skip to content

Commit

Permalink
compositorcontroller: fix for rdkshell crash
Browse files Browse the repository at this point in the history
fix for rdkcentral#54

return type of CompositorController::draw() changed to void
as it is not returning any value. Upon having a return type but
no return value, rdkshell encounters segmentation fault while
building it on higher version of gcc

Signed-off-by: Moorthy Baskar <[email protected]>
  • Loading branch information
Moorthy Baskar committed Jan 8, 2021
1 parent 5141207 commit 3b79919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compositorcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ namespace RdkShell
return ret;
}

bool CompositorController::draw()
void CompositorController::draw()
{
if (gShowWaterMarkImage && gWaterMarkImage != nullptr)
{
Expand Down
2 changes: 1 addition & 1 deletion compositorcontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace RdkShell
static bool showSplashScreen(uint32_t displayTimeInSeconds);
static bool hideWatermark();
static bool showWatermark();
static bool draw();
static void draw();
static bool update();
static bool setLogLevel(const std::string level);
static bool getLogLevel(std::string& level);
Expand Down

0 comments on commit 3b79919

Please sign in to comment.