video: driver: Return proper error code
Return correct error code when session is not supported since remaining memory is not sufficient to proceed current session Bug: 273301608 Test: CtsMediaMiscTestCases:android.media.misc.cts.ResourceManagerTest#testAVCVideoCodecReclaimHighResolution Change-Id: Ib989b7ad41606303f2ff3359768105b10cf9393d
This commit is contained in:
committed by
Michael Bestas
parent
29ea278cb8
commit
5889b586f3
@@ -3547,7 +3547,7 @@ static int msm_vidc_load_resources(int flipped_state,
|
||||
"H/W is overloaded. needed: %d max: %d\n",
|
||||
video_load, max_video_load);
|
||||
msm_vidc_print_running_insts(inst->core);
|
||||
return -EBUSY;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
if (video_load + image_load > max_video_load + max_image_load) {
|
||||
@@ -3555,7 +3555,7 @@ static int msm_vidc_load_resources(int flipped_state,
|
||||
"H/W is overloaded. needed: [video + image][%d + %d], max: [video + image][%d + %d]\n",
|
||||
video_load, image_load, max_video_load, max_image_load);
|
||||
msm_vidc_print_running_insts(inst->core);
|
||||
return -EBUSY;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
hdev = core->device;
|
||||
|
||||
Reference in New Issue
Block a user