Skip to content
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

[OpenCDMi] Remove all unnecessary member variables to save some memory #329

Merged
merged 3 commits into from
Nov 21, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions OpenCDMi/FrameworkRPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,11 @@ namespace Plugin {

private:
CDMi::IMediaKeySession* _mediaKeys;
VARIABLE_IS_NOT_USED CDMi::IMediaKeySessionExt* _mediaKeysExt;
VARIABLE_IS_NOT_USED uint8_t* _sessionKey;
VARIABLE_IS_NOT_USED uint32_t _sessionKeyLength;
PUSH_WARNING(DISABLE_WARNING_UNUSED_VARIABLES)
CDMi::IMediaKeySessionExt* _mediaKeysExt;
uint8_t* _sessionKey;
uint32_t _sessionKeyLength;
POP_WARNING()
};

// IMediaKeys defines the MediaKeys interface.
Expand Down Expand Up @@ -748,7 +750,9 @@ POP_WARNING()
private:
AccessorOCDM& _parent;
mutable Core::CriticalSection _adminLock;
VARIABLE_IS_NOT_USED mutable uint32_t _refCount;
PUSH_WARNING(DISABLE_WARNING_UNUSED_VARIABLES)
mutable uint32_t _refCount;
POP_WARNING()
std::string _keySystem;
std::string _sessionId;
CDMi::IMediaKeySession* _mediaKeySession;
Expand Down
Loading