From d685cf105290812009a6a81292ef5e573b53cff2 Mon Sep 17 00:00:00 2001 From: Paul-Louis Ageneau Date: Fri, 29 Dec 2023 18:07:38 +0100 Subject: [PATCH] Added test for media description parsing --- test/track.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/track.cpp b/test/track.cpp index b6b997294..902b9ca92 100644 --- a/test/track.cpp +++ b/test/track.cpp @@ -95,6 +95,11 @@ void test_track() { media.setBitrate(3000); media.addSSRC(1234, "video-send"); + const auto mediaSdp1 = string(media); + const auto mediaSdp2 = string(Description::Media(mediaSdp1)); + if (mediaSdp2 != mediaSdp1) + throw runtime_error("Media description parsing test failed"); + auto t1 = pc1.addTrack(media); pc1.setLocalDescription();