Branch: refs/heads/webkitglib/2.48
Home: https://github.com/WebKit/WebKit
Commit: a73e137d455a6c16cadf959c4bd7ed67607b7452
https://github.com/WebKit/WebKit/commit/a73e137d455a6c16cadf959c4bd7ed67607b7452
Author: Philippe Normand <[email protected]>
Date: 2025-05-28 (Wed, 28 May 2025)
Changed paths:
M
Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp
Log Message:
-----------
Cherry-pick 294886@main (58dae86e4a98).
https://bugs.webkit.org/show_bug.cgi?id=292924
[GStreamer][MediaStream] Reference cycle in webkitmediastreamsrc preventing
its disposal
https://bugs.webkit.org/show_bug.cgi?id=292924
Reviewed by Xabier Rodriguez-Calvar.
The src pad probe data storing a strong reference of the src element
introduced a reference cycle,
so use a weak reference instead.
Also, remove a useless refcount increment/decrement in
webkitMediaStreamSrcEnsureStreamCollectionPosted, the
callOnMainThreadAndWait call is blocking so
there is no need to increase the element refcount before calling the
closure.
*
Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:
(webkitMediaStreamSrcEnsureStreamCollectionPosted):
(webkitMediaStreamSrcPadProbeCb):
(webkitMediaStreamSrcAddTrack):
Canonical link: https://commits.webkit.org/294886@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes