Skip to content

Fix missing RTC_OBJC_TYPE macros in webrtc-sys .mm files#930

Open
ackanir wants to merge 2 commits intolivekit:mainfrom
miroir-os:ackanir/fix-objc-type-macro
Open

Fix missing RTC_OBJC_TYPE macros in webrtc-sys .mm files#930
ackanir wants to merge 2 commits intolivekit:mainfrom
miroir-os:ackanir/fix-objc-type-macro

Conversation

@ackanir
Copy link

@ackanir ackanir commented Mar 6, 2026

objc_video_factory.mm and objc_video_frame_buffer.mm reference ObjC classes using bare names (RTCDefaultVideoEncoderFactory, RTCVideoEncoderFactorySimulcast, RTCDefaultVideoDecoderFactory, RTCCVPixelBuffer).

When using a custom libwebrtc build with rtc_objc_prefix set (to avoid ObjC class collisions with other WebRTC copies in the same binary), these classes get renamed but the references in webrtc-sys don't, causing compilation errors against the prefixed headers.

For reference:
objc_video_frame_buffer.mm already uses RTC_OBJC_TYPE(RTCVideoFrameBuffer) on line 38, but the other references in the same file and all references in objc_video_factory.mm were missed.

@CLAassistant
Copy link

CLAassistant commented Mar 6, 2026

CLA assistant check
All committers have signed the CLA.

@ladvoc ladvoc requested a review from cloudwebrtc March 6, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants