Closed Bug 1302926 Opened 9 years ago Closed 9 years ago

Report MP4Parse telemetry for all tracks, not just the first one

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: kinetik, Assigned: kinetik)

Details

Attachments

(1 file, 1 obsolete file)

MP4Metadata::GetNumberTracks isn't correctly reporting telemetry for the Rust MP4 demuxer because mReportedTelemetry is set after the first call to GetNumberTracks, even if subsequent calls are for different track types. I think this is causing MEDIA_RUST_MP4PARSE_TRACK_MATCH_VIDEO not to show up in the current telemetry at all. The simple solution is to drop mReportedTelemetry and let the telemetry servers handle coalescing of results.
Attached patch bug1302926_v0.patch (obsolete) — Splinter Review
Attachment #8791466 - Flags: review?(giles)
Or you could have a separate bool for each track type?
Sure... but now you've volunteered to review it.
Attachment #8791466 - Attachment is obsolete: true
Attachment #8791466 - Flags: review?(giles)
Attachment #8791471 - Flags: review?(gsquelart)
Comment on attachment 8791471 [details] [diff] [review] bug1302926_v1.patch Review of attachment 8791471 [details] [diff] [review]: ----------------------------------------------------------------- I'll take the punishment... r+ with suggestion: ::: media/libstagefright/binding/include/mp4_demuxer/MP4Metadata.h @@ +40,5 @@ > #ifdef MOZ_RUST_MP4PARSE > UniquePtr<MP4MetadataRust> mRust; > mutable bool mPreferRust; > + mutable bool mReportedAudioTracks; > + mutable bool mReportedVideoTracks; I feel like "Telemetry" should stay in the name, as it's not obvious in this context. If you don't like ExtremelyLongVariableNames, please add a comment about telemetry instead.
Attachment #8791471 - Flags: review?(gsquelart) → review+
I renamed them to mReported{Audio,Video}TrackTelemetry.
Pushed by mgregan@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/4d6a57e1b12f Report MP4Parse telemetry for all tracks, not just the first one. r=gerald
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: