MonaSolutions / MonaServer2

Temporary project planned to replace MonaServer
GNU General Public License v3.0
267 stars 36 forks source link

VC 2019 compilation fixes #45

Closed demiantres closed 3 years ago

demiantres commented 3 years ago

RTPReader.h, lines 56-59 fix:

    if (playloadType != _profile.playloadType) {
        ERROR(typeof<RTP_ProfileType>()," configured to receive ",_profile.playloadType," playload type and not ",playloadType)
        return 0;
    }

RTPWriter.h, lines 113-116:

        if (isAudio)
            flush = _profile.writeAudio(tag, reader, writer, canWrite);
        else
            flush = _profile.writeVideo(tag, reader, writer, canWrite);

Here, I am not sure how to fix this. The problem is that "tag" is of the wrong type.

RTPWriter.h, line98:

            _pBuffer.set(0);
MathieuPOUX commented 3 years ago

I have just now tried to fix your compilation issue with your description, I wait your feedback :-) Thanks by this way!

demiantres commented 3 years ago

Thanks for the fix. It works.