[Webkit-unassigned] [Bug 180083] [EME] Add support of multi keys from different sessions in CDMinstanceClearKey
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 29 04:42:24 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=180083
Xabier Rodríguez Calvar <calvaris at igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #327753|review?, commit-queue? |review-, commit-queue-
Flags| |
--- Comment #2 from Xabier Rodríguez Calvar <calvaris at igalia.com> ---
Comment on attachment 327753
--> https://bugs.webkit.org/attachment.cgi?id=327753
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=327753&action=review
I think in this case we would be duplicating the keys so I'd suggest checking for the keys to be inside the Vector before adding a new one.
Another issue I see is that a little bit below, the vector is cleared and probably we don't want to clear the keys that are still associated with a session. I think this logic is flawed and needs more work.
Maybe Žan can correct me if I am wrong.
> Source/WebCore/platform/encryptedmedia/clearkey/CDMClearKey.cpp:545
> + for (auto& key : keyVector)
> + m_keys.append(key);
If you wanted to do this, which I don't think is what I'd really want, you could use appendVector.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171129/9ac73821/attachment-0001.html>
More information about the webkit-unassigned
mailing list