/app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/Ref.h:119:52: error: invalid argument type 'WebCore::VideoFrameGStreamer' to unary expression bool operator!() const { ASSERT(m_ptr); return !*m_ptr; } ^~~~~~~ /app/webkit/Source/WebCore/platform/mediastream/RealtimeVideoSource.cpp:195:5: note: in instantiation of member function 'WTF::Ref<WebCore::VideoFrameGStreamer>::operator!' requested here ASSERT(newVideoFrame); ^
I suppose the assertion should be moved into PLATFORM(COCOA). Another option would be to explicitly declare the variable as RefPtr<VideFrameGStreamer> instead of using “auto” to avoid the compiler deducing it can use Ref<T>. I am not sure what option is preferred in this case.
Pull request: https://github.com/WebKit/WebKit/pull/3190
Pull request: https://github.com/WebKit/WebKit/pull/3192
Committed 253296@main (ec1e02abd6f9): <https://commits.webkit.org/253296@main> Reviewed commits have been landed. Closing PR #3192 and removing active labels.
<rdar://problem/98451754>