Closed
Bug 1222875
Opened 9 years ago
Closed 9 years ago
[EME] Connect MediaKeySession.expiration to GMP
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: cpearce, Assigned: cpearce)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
2.42 KB,
patch
|
mozbugz
:
review+
|
Details | Diff | Splinter Review |
I never connected GMPDecryptorCallback::ExpirationChange to MediaKeySession. It's pretty easy to hookup.
Assignee | ||
Comment 1•9 years ago
|
||
Calls in the GMP process to GMPDecryptorCallback::ExpirationChange() are already sent across to the parent process, we just need to finish the job and pass them onto affecting MediaKeySession.expiration.
Attachment #8684744 -
Flags: review?(gsquelart)
Comment on attachment 8684744 [details] [diff] [review]
Patch: Connect GMPDecryptorCallback::ExpirationChange to MediaKeySession.expiration
Review of attachment 8684744 [details] [diff] [review]:
-----------------------------------------------------------------
r+, as it does the job of connecting GMPDecryptorCallback::ExpirationChange to MediaKeySession.expiration.
Nit and question:
::: dom/media/eme/CDMProxy.cpp
@@ +571,5 @@
> {
> MOZ_ASSERT(NS_IsMainThread());
> + RefPtr<dom::MediaKeySession> session(mKeys->GetSession(aSessionId));
> + if (session) {
> + session->SetExpiry((double)aExpiryTime);
Please use C++ static_cast or converting constructor.
::: dom/media/eme/MediaKeySession.h
@@ +115,5 @@
> const uint32_t mToken;
> bool mIsClosed;
> bool mUninitialized;
> RefPtr<MediaKeyStatusMap> mKeyStatusMap;
> + double mExpiry;
mExpiry is only set but not used (unless I'm missing something from the bigger picture?)
Will there be a future bug to actually handle it?
Attachment #8684744 -
Flags: review?(gsquelart) → review+
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Gerald Squelart [:gerald] from comment #2)
> ::: dom/media/eme/MediaKeySession.h
> @@ +115,5 @@
> > const uint32_t mToken;
> > bool mIsClosed;
> > bool mUninitialized;
> > RefPtr<MediaKeyStatusMap> mKeyStatusMap;
> > + double mExpiry;
>
> mExpiry is only set but not used (unless I'm missing something from the
> bigger picture?)
> Will there be a future bug to actually handle it?
It should be returned in MediaKeySession::Expiration(). d'oh!
(In reply to Chris Pearce (:cpearce) from comment #3)
> (In reply to Gerald Squelart [:gerald] from comment #2)
> > mExpiry is only set but not used (unless I'm missing something from the
> > bigger picture?)
> > Will there be a future bug to actually handle it?
>
> It should be returned in MediaKeySession::Expiration(). d'oh!
So I was wrong in my assessment that the job was done. "d'oh!" as well.
While you're at it, you probably should name the member variable 'mExpiration' to be consistent with 'Expiration()' and 'ExpirationChange'.
Comment 6•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•