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

Upstream RDK adapter #250

Merged
merged 16 commits into from
Jun 12, 2024
Prev Previous commit
Next Next commit
release memory allcated for buffer
  • Loading branch information
kkanag314 authored and sramani-metro committed Jun 12, 2024
commit f93fa660d47167b61a5e2351956f7e0824cf7012
3 changes: 2 additions & 1 deletion Source/ocdm/adapter/rdk/open_cdm_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
//#define LOGV(...) Log(__FILE__, __LINE__, CDMi::VERBOSE, __VA_ARGS__)

typedef uint32_t SEC_SIZE;
struct My_Sec_OpaqueBufferHandle_struct
struct Secure_OpaqueBufferHandle_struct
{
SEC_SIZE dataBufSize;
void *sess;
Expand Down Expand Up @@ -407,6 +407,7 @@ OpenCDMError opencdm_gstreamer_session_decrypt_buffer(struct OpenCDMSession* ses
// no encrypted data, skip decryption...
// But still need to transform buffer for SVP support
gst_buffer_svp_transform_from_cleardata(session->SessionPrivateData(), buffer, mediaType);
gst_buffer_unmap(buffer, &dataMap);
return(ERROR_NONE);
}

Expand Down