Merge "media: return null when there are no CamcorderProfiles for getAll" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-06-03 20:21:32 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 3 deletions

View File

@@ -537,7 +537,7 @@ public class CamcorderProfile
public static final long RETURN_ADVANCED_VIDEO_PROFILES = 206033068L; // buganizer id 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. * the given camera at the given quality level.
* <p> * <p>
* Quality levels QUALITY_LOW, QUALITY_HIGH are guaranteed to be supported, while * Quality levels QUALITY_LOW, QUALITY_HIGH are guaranteed to be supported, while

View File

@@ -236,8 +236,6 @@ android_media_MediaProfiles_native_get_camcorder_profiles(JNIEnv *env, jobject /
camcorder_quality q = static_cast<camcorder_quality>(quality); camcorder_quality q = static_cast<camcorder_quality>(quality);
const MediaProfiles::CamcorderProfile *cp = sProfiles->getCamcorderProfile(id, q); const MediaProfiles::CamcorderProfile *cp = sProfiles->getCamcorderProfile(id, q);
if (!cp) { if (!cp) {
jniThrowException(env, "java/lang/RuntimeException",
"Error retrieving camcorder profile params");
return NULL; return NULL;
} }