On 18 September 2017 at 22h47, Tanu Kaskinen wrote: Hi, > No, the function doesn't set the parameter when the argument is not > present. Oh, right, I misread it. I could have initialized the argument to an arbitrary value and compare that after parsing, but that would be uglier. > Since the function returns zero both when a valid value is provided > and when the argument is not set, you need to call > pa_modargs_get_value() in order to know whether to set the > latency_set flag or not, so it's not as useless as I first thought. Indeed. Reworked that part a bit as I didn't need a temporary variable in fact. > If the argument is set, but parsing it fails, you should log an error > message and fail. (Somehow it didn't occur to me to complain about > this earlier.) Thanks, done. -- Colin -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-RAOP-Announce-real-latency.patch Type: text/x-patch Size: 7391 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20170919/9be6a373/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 801 bytes Desc: OpenPGP digital signature URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20170919/9be6a373/attachment.sig>