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

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

Merge "Suppress empty media.metrics records from nuplayer" into oc-dev

parents 8467c128 3991809b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -588,10 +588,10 @@ void NuPlayerDriver::logMetrics(const char *where) {

    // log only non-empty records
    // we always updateMetrics() before we get here
    // and that always injects 2 fields (duration and playing time) into
    // the record.
    // So the canonical "empty" record has 2 elements in it.
    if (mAnalyticsItem->count() > 2) {
    // and that always injects 3 fields (duration, playing time, and
    // datasource) into the record.
    // So the canonical "empty" record has 3 elements in it.
    if (mAnalyticsItem->count() > 3) {

        mAnalyticsItem->setFinalized(true);
        mAnalyticsItem->selfrecord();