Skip to content

Commit 3218649

Browse files
youssefsolieocanha
authored andcommitted
[MSE] Use detach method for HTMLMediaElement::m_mediasource
https://bugs.webkit.org/show_bug.cgi?id=243796 <rdar://98471033> Reviewed by Eric Carlson. We should be using the `detachMediaSource` method in `setSrcObject` in order to be consistent with the rest of the `HTMLMediaElement` implementation. * Source/WebCore/html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::setSrcObject): Canonical link: https://commits.webkit.org/253314@main
1 parent 78df714 commit 3218649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/WebCore/html/HTMLMediaElement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ void HTMLMediaElement::setSrcObject(MediaProvider&& mediaProvider)
11221122
m_mediaStreamSrcObject = nullptr;
11231123
#endif
11241124
#if ENABLE(MEDIA_SOURCE)
1125-
m_mediaSource = nullptr;
1125+
detachMediaSource();
11261126
#endif
11271127
m_blob = nullptr;
11281128

0 commit comments

Comments
 (0)