libdvr: call unload_secdmx_api correctly. [1/1]
PD#SWPL-107752
Problem:
one record session close cause another record session failed.
Solution:
unload_secdmx_api is called only when both records closed.
Verify:
s905x4
Change-Id: I4b14e23e8333db46264ae1978fafc7214a79086a
Signed-off-by: shenghui.geng <shenghui.geng@amlogic.com>
diff --git a/src/record_device.c b/src/record_device.c
index 591493b..ce7a923 100644
--- a/src/record_device.c
+++ b/src/record_device.c
@@ -301,8 +301,6 @@
p_ctx->state = RECORD_DEVICE_STATE_CLOSED;
pthread_mutex_unlock(&p_ctx->lock);
- unload_secdmx_api();
-
return DVR_SUCCESS;
}