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

Commit d77d6dca authored by Ray Essick's avatar Ray Essick Committed by android-build-merger
Browse files

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

am: c97b068f

Change-Id: Ibbfd9d58c25b53879596b1eab878320b419a6470
parents 4392ed13 c97b068f
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();