Closed Bug 1307248 Opened 8 years ago Closed 8 years ago

Use Is{Widevine,Primetime}KeySystem(string) instead of !CompareUTF8toUTF16(kEMEKeySystem*, string)

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: cpearce, Assigned: cpearce)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Whenever I use !CompareUTF8toUTF16(kEMEKeySystem*, string) to detect a keysystem string, I forget to include the '!' on the Compare*() call. We should use have appropriately named helpers, so that it's easier to use.
Comment on attachment 8797277 [details] Bug 1307248 - Add Is{Primetime,Widevine}KeySystem() functions. https://reviewboard.mozilla.org/r/82876/#review81594
Attachment #8797277 - Flags: review?(jwwang) → review+
Comment on attachment 8797278 [details] Bug 1307248 - Replace uses of CompareUTF8toUTF16(kEMEKeySystem*) with Is*KeySystem(). https://reviewboard.mozilla.org/r/82878/#review81596
Attachment #8797278 - Flags: review?(jwwang) → review+
Pushed by cpearce@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1de4e6e383b9 Add Is{Primetime,Widevine}KeySystem() functions. r=jwwang https://hg.mozilla.org/integration/autoland/rev/49a429cb34a6 Replace uses of CompareUTF8toUTF16(kEMEKeySystem*) with Is*KeySystem(). r=jwwang
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: