Title: [238561] trunk/Source/WebCore
- Revision
- 238561
- Author
- jer.no...@apple.com
- Date
- 2018-11-27 11:34:06 -0800 (Tue, 27 Nov 2018)
Log Message
Unregister CDMSessionMediaSourceAVFObjC for error notifications during destruction.
https://bugs.webkit.org/show_bug.cgi?id=191985
<rdar://problem/45972018>
Reviewed by Eric Carlson.
* platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
(WebCore::CDMSessionMediaSourceAVFObjC::~CDMSessionMediaSourceAVFObjC):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (238560 => 238561)
--- trunk/Source/WebCore/ChangeLog 2018-11-27 19:31:51 UTC (rev 238560)
+++ trunk/Source/WebCore/ChangeLog 2018-11-27 19:34:06 UTC (rev 238561)
@@ -1,3 +1,14 @@
+2018-11-27 Jer Noble <jer.no...@apple.com>
+
+ Unregister CDMSessionMediaSourceAVFObjC for error notifications during destruction.
+ https://bugs.webkit.org/show_bug.cgi?id=191985
+ <rdar://problem/45972018>
+
+ Reviewed by Eric Carlson.
+
+ * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
+ (WebCore::CDMSessionMediaSourceAVFObjC::~CDMSessionMediaSourceAVFObjC):
+
2018-11-27 Thibault Saunier <tsaun...@igalia.com>
[GStreamer][WebRTC] Use LibWebRTC provided vp8 decoders and encoders
Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm (238560 => 238561)
--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm 2018-11-27 19:31:51 UTC (rev 238560)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm 2018-11-27 19:34:06 UTC (rev 238561)
@@ -45,6 +45,10 @@
{
if (m_cdm)
m_cdm->invalidateSession(this);
+
+ for (auto& sourceBuffer : m_sourceBuffers)
+ sourceBuffer->unregisterForErrorNotifications(this);
+ m_sourceBuffers.clear();
}
void CDMSessionMediaSourceAVFObjC::layerDidReceiveError(AVSampleBufferDisplayLayer *, NSError *error, bool& shouldIgnore)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes