mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[misc]: Fix some minor issues
1. Fix rga.cpp compile error on Linux. 2. Fix mpp_runtime.cpp warning on Linux. 3. Remove print when fail to dlopen vpuapi library. Change-Id: I3891bdd39ae77bac68a67a39893d8caa31dbe6fb Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -125,10 +125,15 @@ MppRuntimeService::MppRuntimeService()
|
||||
RK_S32 val = 0;
|
||||
FILE *fp = fopen(path, "rb");
|
||||
if (fp) {
|
||||
fread(&val, 1, 4, fp);
|
||||
size_t len = fread(&val, 1, 4, fp);
|
||||
// zero for ion non-zero for drm ->
|
||||
// zero - disable drm
|
||||
// non-zero - disable ion
|
||||
if (len != 4) {
|
||||
mpp_err("failed to read dts allocator value default 0\n");
|
||||
val = 0;
|
||||
}
|
||||
|
||||
if (val == 0) {
|
||||
allocator_valid[MPP_BUFFER_TYPE_DRM] = 0;
|
||||
mpp_log("found ion allocator in dts\n");
|
||||
|
Reference in New Issue
Block a user