Skip to content

Error building libSourcey with WebRTC (Errors in AddRef and Release) #275

Open
@Edgar-Alarcon

Description

@Edgar-Alarcon

Hi,

I am trying to compile libSourcey with the WebRtc binaries on Visual Studio (Windows) .

After generating the project correctly on Cmake choosing WITH_WEBRTC and setting the correct includes, I try to compile the solution but these errors were found :

'RefCountReleaseStatus': is not a member of 'rtc'
'Release': unknown override specifier

These are the conflictive lines

Peer.h

    virtual void AddRef() const override { return; }
    virtual rtc::RefCountReleaseStatus Release() const override { return rtc::RefCountReleaseStatus::kDroppedLastRef; }

audiopacketmodule.cpp

rtc::scoped_refptr<AudioPacketModule> AudioPacketModule::Create()
{
    rtc::scoped_refptr<AudioPacketModule> capture_module(
        new rtc::RefCountedObject<AudioPacketModule>());
    if (!capture_module->Initialize()) {
        return nullptr;
    }
    return capture_module;
}

I guess that is an issue related with libSourcey and WebRTC versions, but I don't know how to solve it.

Any one could help me ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions