Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a486c752 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "pass updated getMetrics() values back to caller"

parents da3024c9 758c7385
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -745,6 +745,8 @@ status_t JMediaCodec::getCodecInfo(JNIEnv *env, jobject *codecInfoObject) const
status_t JMediaCodec::getMetrics(JNIEnv *, MediaAnalyticsItem * &reply) const {
    mediametrics_handle_t reply2 = MediaAnalyticsItem::convert(reply);
    status_t status = mCodec->getMetrics(reply2);
    // getMetrics() updates reply2, pass the converted update along to our caller.
    reply = MediaAnalyticsItem::convert(reply2);
    return status;
}