[vlc-commits] [Git][videolan/vlc][master] sout: chromecast: warn on unknown namespace

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Wed Mar 25 17:27:16 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
a9e4e08e by Alaric Senat at 2026-03-25T17:23:30+01:00
sout: chromecast: warn on unknown namespace

Unknown namespaces should not cause a chromecast mainloop failure, lower the
error message to a warning and simply skip it.

VLC does not handle all chromecast defined namespaces and google are
free to add optional ones to the protocol anytime they want. For
instance, all modern chromecasts advertise multizone messages that we do
not support yet:

```
Unknown namespace: urn:x-cast:com.google.cast.multizone
```

This reverts a behavior change mistakenly introduced by d85ecc2dd1f8365200b87e5164b5c76355d2ce0e.

- - - - -


1 changed file:

- modules/stream_out/chromecast/chromecast_ctrl.cpp


Changes:

=====================================
modules/stream_out/chromecast/chromecast_ctrl.cpp
=====================================
@@ -599,8 +599,8 @@ bool intf_sys_t::processMessage(const castchannel::CastMessage &msg)
         && (namespace_ != NAMESPACE_RECEIVER)
         && (namespace_ != NAMESPACE_MEDIA)
         && (namespace_ != NAMESPACE_CONNECTION)) {
-        msg_Err( m_module, "Unknown namespace: %s", namespace_.c_str());
-        return false;
+        msg_Warn(m_module, "Unknown namespace: %s", namespace_.c_str());
+        return true;
     }
 
     struct chromecast_ctrl_json sys;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a9e4e08ec3f0cb2028bfe2f4eb79f4edd811439c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a9e4e08ec3f0cb2028bfe2f4eb79f4edd811439c
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list