Closed Bug 1316205 Opened 8 years ago Closed 8 years ago

Remove legacy WaveReader

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: jya, Assigned: jya)

References

Details

Attachments

(3 files)

HAs been unused for over a year now...
Blocks: 1316211
Comment on attachment 8808889 [details]
Bug 1316205: P1. Remove unused WaveReader.

https://reviewboard.mozilla.org/r/91606/#review91528
Attachment #8808889 - Flags: review?(kaku) → review+
Comment on attachment 8808890 [details]
Bug 1316205: P2. Remove wave duplicated code.

https://reviewboard.mozilla.org/r/91608/#review91524

::: dom/media/DecoderTraits.cpp:210
(Diff revision 1)
>        // We can only reach this position if a particular codec was requested,
>        // ogg is supported and working: the codec must be invalid.
>        return CANPLAY_NO;
>      }
>    }
> -  if (IsWaveType(aType.GetMIMEType())) {
> +  if (IsWaveSupportedType(aType.GetMIMEType())) {

Personally, I think a wrapper function, likes the other formats do, helps to read this nested if-statement.

```
static bool 
IsWaveTypeAndEnabled(const nsACString& aType)
{
  return IsWaveSupportedType(aType);
}
```
Attachment #8808890 - Flags: review?(kaku) → review+
Comment on attachment 8808890 [details]
Bug 1316205: P2. Remove wave duplicated code.

https://reviewboard.mozilla.org/r/91608/#review91524

> Personally, I think a wrapper function, likes the other formats do, helps to read this nested if-statement.
> 
> ```
> static bool 
> IsWaveTypeAndEnabled(const nsACString& aType)
> {
>   return IsWaveSupportedType(aType);
> }
> ```

Those "wrappers" are only defined due to 2 members being public and the wish to minimize code duplication. the majority don't use a wrapper.
As it is now, it's using the same style as the line just above with IsOggSupportedType
Comment on attachment 8809232 [details]
Bug 1316205: P3. Remove WaveDecoder::IsEnable().

https://reviewboard.mozilla.org/r/91820/#review91796
Attachment #8809232 - Flags: review?(gsquelart) → review+
Pushed by jyavenard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c61363a3c271
P1. Remove unused WaveReader. r=kaku
https://hg.mozilla.org/integration/autoland/rev/133477f27fe6
P2. Remove wave duplicated code. r=kaku
https://hg.mozilla.org/integration/autoland/rev/60bf1293eabf
P3. Remove WaveDecoder::IsEnable(). r=gerald
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: