Skip to content

Commit a961e11

Browse files
committed
Working on #160
1 parent d42d6f1 commit a961e11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

worker/src/RTC/Consumer.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ namespace RTC
328328
// Target profile removed. Recalculate.
329329
else if (this->targetProfile == profile)
330330
{
331+
// It may also be the effective profile, so set it to none.
332+
if (this->effectiveProfile == profile)
333+
SetEffectiveProfile(RtpEncodingParameters::Profile::NONE);
334+
331335
RecalculateTargetProfile();
332336
}
333337
// There is an ongoing probation for this profile, disable it.

0 commit comments

Comments
 (0)