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

Commit c97b068f 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

Change-Id: I92792befd7909fc873114c69b10ae832ed0bb31e
parents 8f4b21a0 feb0d87f
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();