Title: [175828] trunk/Source/WebCore
Revision
175828
Author
jer.no...@apple.com
Date
2014-11-10 13:48:01 -0800 (Mon, 10 Nov 2014)

Log Message

[EME][Mac] Add a systemCode to distinguish when no expired sessions were found in response to a "keyrelease" message.
https://bugs.webkit.org/show_bug.cgi?id=138199

Reviewed by Eric Carlson.

Clients may want to be able to distinguish between cases where expired session data is not supported, and when
those data are supported, but none are found.

* platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
(WebCore::CDMSessionMediaSourceAVFObjC::generateKeyReleaseMessage):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (175827 => 175828)


--- trunk/Source/WebCore/ChangeLog	2014-11-10 21:39:02 UTC (rev 175827)
+++ trunk/Source/WebCore/ChangeLog	2014-11-10 21:48:01 UTC (rev 175828)
@@ -1,3 +1,16 @@
+2014-11-10  Jer Noble  <jer.no...@apple.com>
+
+        [EME][Mac] Add a systemCode to distinguish when no expired sessions were found in response to a "keyrelease" message.
+        https://bugs.webkit.org/show_bug.cgi?id=138199
+
+        Reviewed by Eric Carlson.
+
+        Clients may want to be able to distinguish between cases where expired session data is not supported, and when
+        those data are supported, but none are found.
+
+        * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
+        (WebCore::CDMSessionMediaSourceAVFObjC::generateKeyReleaseMessage):
+
 2014-11-04  Jer Noble  <jer.no...@apple.com>
 
         REGRESSION(r174823): Several tests fail due to canplaythrough firing before tracks are available

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm (175827 => 175828)


--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm	2014-11-10 21:39:02 UTC (rev 175827)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm	2014-11-10 21:48:01 UTC (rev 175828)
@@ -325,10 +325,15 @@
 
     NSArray* expiredSessions = [getAVStreamSessionClass() pendingExpiredSessionReportsWithAppIdentifier:certificateData.get()];
     if (![expiredSessions count]) {
+        LOG(Media, "CDMSessionMediaSourceAVFObjC::generateKeyReleaseMessage(%p) - no expired sessions found", this);
+
         errorCode = MediaPlayer::KeySystemNotSupported;
+        systemCode = '!mor';
         return nullptr;
     }
 
+    LOG(Media, "CDMSessionMediaSourceAVFObjC::generateKeyReleaseMessage(%p) - found %d expired sessions", this, [expiredSessions count]);
+
     errorCode = 0;
     systemCode = 0;
     m_expiredSession = [expiredSessions firstObject];
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to