Closed Bug 1247556 Opened 8 years ago Closed 8 years ago

Use GMPInfoFileParser in GMPParent::ReadGMPMetaData()

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: cpearce, Assigned: cpearce)

Details

Attachments

(1 file)

We can simplify the code to read the GMP info file by using GMPInfoFileParser in GMPParent::ReadGMPMetaData().
Comment on attachment 8718280 [details] [diff] [review]
Use GMPInfoFileParser in GMPParent::ReadGMPMetaData()

Review of attachment 8718280 [details] [diff] [review]:
-----------------------------------------------------------------

r+. Sorry, had to complain about something:

::: dom/media/gmp/GMPUtils.cpp
@@ +181,3 @@
>      ToLowerCase(key);
>      key.Trim(" ");
> +    

Remove spaces on empty lines.
Attachment #8718280 - Flags: review?(gsquelart) → review+
Comment on attachment 8718280 [details] [diff] [review]
Use GMPInfoFileParser in GMPParent::ReadGMPMetaData()

Review of attachment 8718280 [details] [diff] [review]:
-----------------------------------------------------------------

Just to be complete:

::: dom/media/gmp/GMPParent.cpp
@@ +738,2 @@
>    }
> +  aOutValue = aParser.Get(aKey);

In most cases, |aParser.Get(aKey)| will be called twice.
But it's not a big cost overall; for a GMP-loading operation that is not time-critical, and (I think) only happens once per plugin per session. So I'm okay with it staying.
https://hg.mozilla.org/mozilla-central/rev/3e2cdc6244d1
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: