Fixed compatibility with broken RTSP implementation of Larix

This commit is contained in:
Thulinma 2018-05-31 15:58:05 +02:00
parent 98b704a764
commit 72bae90ead

View file

@ -369,7 +369,7 @@ namespace SDP{
continue; continue;
} }
getline(words, item, ' '); getline(words, item, ' ');
if (!getline(words, item, ' ') || item != "RTP/AVP"){ if (!getline(words, item, ' ') || item.substr(0, 7) != "RTP/AVP"){
WARN_MSG("Media transport not supported: %s", item.c_str()); WARN_MSG("Media transport not supported: %s", item.c_str());
myMeta->tracks.erase(trackNo); myMeta->tracks.erase(trackNo);
tracks.erase(trackNo); tracks.erase(trackNo);