Closed Bug 1386951 Opened 7 years ago Closed 7 years ago

Have ChannelMediaDecoder implement CreateStateMachine()

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(1 file)

The implementation will be shared by most of the sub-classes except OggDecoder which needs to call demuxer->SetChainingEvents().

http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/dom/media/ogg/OggDecoder.cpp#25

This help reduce code changes whenever we add a field to MediaFormatReaderInit.
Assignee: nobody → jwwang
Blocks: 1373160
Priority: -- → P3
Attachment #8893294 - Flags: review?(jyavenard)
Comment on attachment 8893294 [details]
Bug 1386951 - have ChannelMediaDecoder implement CreateStateMachine() and fix includes.

https://reviewboard.mozilla.org/r/164354/#review169702

::: commit-message-0c7e7:8
(Diff revision 1)
> +The implementation will be shared by most of the sub-classes except OggDecoder
> +which needs to call demuxer->SetChainingEvents().
> +
> +http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/dom/media/ogg/OggDecoder.cpp#25
> +
> +This help reduce code changes whenever we add a field to MediaFormatReaderInit.

this help reducing

::: dom/media/ChannelMediaDecoder.cpp:160
(Diff revision 1)
>    mResourceCallback->Connect(this);
>  }
>  
> +MediaDecoderStateMachine* ChannelMediaDecoder::CreateStateMachine()
> +{
> +  MediaFormatReaderInit init;

Please add MOZ_ASSERT(NS_IsMainThread());
Attachment #8893294 - Flags: review?(jyavenard) → review+
Thanks!
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/be090e170cc6
have ChannelMediaDecoder implement CreateStateMachine() and fix includes. r=jya
https://hg.mozilla.org/mozilla-central/rev/be090e170cc6
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: