[vlc-devel] [vlc-commits] variables: use linked listed for callbacks

Rémi Denis-Courmont remi at remlab.net
Wed Apr 18 17:34:57 CEST 2018


Le keskiviikkona 18. huhtikuuta 2018, 15.30.51 EEST Zhao Zhili a écrit :
> I can reproduce this.
> 
> StereoModeCallback is added as vlc_value_callback and triggered as
> vlc_list_callback.

That audio output case is not included in the test suite, and there is also no 
unit test for the list callbacks.

That said, the list callbacks are rarely used. AFAIK, they are only used for 
audio device list changes. It might be easier to remove the API, save space, 
and skip test development, by using regular ad-hoc callbacks (e.g. "audio-
device-added", "audio-device-removed", "audio-device-changed" variables or 
whatever).

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list