Fix mediaType not updated after publisher renegotiations

The "mediaTypes" attribute is checked to know if a publisher needs to be
closed when the permissions are updated. However, that attribute was set
only when the publisher was initially created; due to this if a
publisher then used a renegotiation to add media not included in the
original offer the publisher would not be closed if the publishing
permission for that media was later revoked.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez
2022-04-07 02:50:57 +02:00
parent b98a00ec10
commit b9d671ab2f
5 changed files with 16 additions and 0 deletions
+1
View File
@@ -90,6 +90,7 @@ type McuPublisher interface {
McuClient
HasMedia(MediaType) bool
SetMedia(MediaType)
}
type McuSubscriber interface {