Merge "media: return null when there are no CamcorderProfiles for getAll" into tm-dev am: 2edaa3a126 am: 2b5072afb9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18721254 Change-Id: I9094f0a0b523240cf4d52a5dcf86d42a5f92ad52 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -537,7 +537,7 @@ public class CamcorderProfile
|
||||
public static final long RETURN_ADVANCED_VIDEO_PROFILES = 206033068L; // buganizer id
|
||||
|
||||
/**
|
||||
* Returns all basic encoder profiles of a camcorder profile for
|
||||
* Returns all encoder profiles of a camcorder profile for
|
||||
* the given camera at the given quality level.
|
||||
* <p>
|
||||
* Quality levels QUALITY_LOW, QUALITY_HIGH are guaranteed to be supported, while
|
||||
|
||||
@@ -236,8 +236,6 @@ android_media_MediaProfiles_native_get_camcorder_profiles(JNIEnv *env, jobject /
|
||||
camcorder_quality q = static_cast<camcorder_quality>(quality);
|
||||
const MediaProfiles::CamcorderProfile *cp = sProfiles->getCamcorderProfile(id, q);
|
||||
if (!cp) {
|
||||
jniThrowException(env, "java/lang/RuntimeException",
|
||||
"Error retrieving camcorder profile params");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user