| Summary: | [MSE][GStreamer] Break circular reference between SourceBufferPrivateGStreamer and AppendPipeline | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alicia Boya García <aboya> | ||||
| Component: | WebKitGTK | Assignee: | Alicia Boya García <aboya> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bugs-noreply, calvaris, cgarcia, eric.carlson, ews-watchlist, glenn, gustavo, jer.noble, menard, philipj, pnormand, sergio, vjaquez | ||||
| Priority: | P2 | ||||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Alicia Boya García
2020-07-15 03:42:17 PDT
Created attachment 404329 [details]
Patch
Comment on attachment 404329 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404329&action=review > Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.h:57 > - Ref<SourceBufferPrivateGStreamer> sourceBufferPrivate() { return m_sourceBufferPrivate.get(); } > + SourceBufferPrivateGStreamer& sourceBufferPrivate() { return m_sourceBufferPrivate; } > GstCaps* appsinkCaps() { return m_appsinkCaps.get(); } > RefPtr<WebCore::TrackPrivateBase> track() { return m_track; } > MediaPlayerPrivateGStreamerMSE* playerPrivate() { return m_playerPrivate; } At some point I think we should flag all these that just return object state as const. I think we would need a separate bug but if you feel like doing it, it would be great. Besides, the original code should have returned a const Ref& as you won't touch the pointer but the object in it. Committed r264392: <https://trac.webkit.org/changeset/264392> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404329 [details]. |