GNOME Bugzilla – Bug 761690
Avoid using deprecated libsoup API (and require libsoup 2.48)
Last modified: 2016-02-08 02:02:37 UTC
I noticed various warnings while running Rhythmbox on Fedora 22, some of which came from libdmapshare. Patches attached which will fix all these, by using new API from libsoup 2.48 instead.
Created attachment 320589 [details] [review] Require libsoup 2.48.0 2.48 was released in September 2014, so should be in most distros by now.
Created attachment 320590 [details] [review] Use new SoupServer API to create DMAPShare server. This old API is deprecated, and with the new API we can report the actual error message if we hit an error.
Created attachment 320591 [details] [review] Always set base URI path A SoupURI is considered invalid if the path is NULL. Set the path of the base URI to an empty string, instead. This fixes a bunch of these warnings: (rhythmbox:32182): libsoup-WARNING **: (soup-uri.c:248):soup_uri_new_with_base: runtime check failed: (SOUP_URI_IS_VALID (base))
Created attachment 320592 [details] [review] Use soup_session_new() instead of deprecated soup_session_new_async() The SoupSession class now handles async and sync communications. Since we already call soup_session_queue_message() (which sends the message asynchronously) there are no other changes needed.
This would fix https://bugzilla.gnome.org/show_bug.cgi?id=727839 among other things
Please see libdmapsharing 2.9.33. Thank you, Sam!