Open kloczek opened 5 years ago
/* TODO: this weak_ref hack is needed as
gupnp_service_info_get_introspection iterates the main loop.
This can result in our device getting deleted before this
function returns. Ultimately, this code needs to be re-written
to use gupnp_service_info_get_introspection_async but this cannot
really be done until GUPnP provides a way to cancel this function. */
Hello, not sure what does it mean, is now GUPnP providing it?
This is the commit in the gupnp
project that removed the deprecated functions, and was committed way back on Sep 30, 2016. That commit is part of every tag, which goes all the way back to gupnp-1.1.0, so the subject of this ticket should probably say "against gupnp 1.1.0 and later". Also, gupnp_service_info_get_introspection_async_full(), which is cancelable, has existed probably as long as gupnp_service_info_get_introspection_async() has, but maybe there wasn't documentation about it whenever that comment was written.
This is basically the result of never finishing https://github.com/intel/dleyna-renderer/issues/104. gupnp_service_info_get_introspection_async_full(), was introduced explicitly for this.
Note: for anyone interested in the patch series needded see PR https://github.com/intel/dleyna-renderer/pull/167
Ah. Forgot to put the issue on the PR