[vlc-devel] [PATCHv3 3/7] sd: update services_discovery_AddSubItem documentation

Thomas Guillem thomas at gllm.fr
Tue Sep 22 14:09:54 CEST 2020


---
 include/vlc_services_discovery.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/vlc_services_discovery.h b/include/vlc_services_discovery.h
index b88ca203487..cfdafa170f4 100644
--- a/include/vlc_services_discovery.h
+++ b/include/vlc_services_discovery.h
@@ -180,6 +180,11 @@ static inline void services_discovery_AddItem(services_discovery_t *sd,
  * to alter the item later. However, if the caller will never remove nor alter
  * the item, it can drop its reference(s) immediately.
  *
+ * @warning any update on the item after this call will be ignored by the
+ * receiver. The only solution to update an item is to remove and add it back.
+ * Implementing update callback support might be necessary if this case turns
+ * up too often.
+ *
  * @param sd services discoverer / services discovery module instance
  * @param item input item to add
  */
-- 
2.28.0



More information about the vlc-devel mailing list