Skip to content

Commit

Permalink
Remove redundant environment variable before gst_deinit
Browse files Browse the repository at this point in the history
  • Loading branch information
skyproudmanp committed May 23, 2024
1 parent d73ad69 commit aa246a8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions media/server/service/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,11 @@ int main(int argc, char *argv[])
}

#ifdef FREE_MEM_BEFORE_EXIT
if (getenv("RIALTO_FREE_MEM_BEFORE_EXIT"))
{
RIALTO_SERVER_LOG_INFO("Calling gst_deinit");
firebolt::rialto::server::gstDeinitalise();
RIALTO_SERVER_LOG_INFO("Calling gst_deinit");
firebolt::rialto::server::gstDeinitalise();

RIALTO_SERVER_LOG_INFO("Calling ShutdownProtobufLibrary");
google::protobuf::ShutdownProtobufLibrary();
}
RIALTO_SERVER_LOG_INFO("Calling ShutdownProtobufLibrary");
google::protobuf::ShutdownProtobufLibrary();
#endif

return EXIT_SUCCESS;
Expand Down

0 comments on commit aa246a8

Please sign in to comment.