When XDG user dirs are badly setup, and the folders list contains items
such as @VIDEOS@ or @MUSIC@, g_get_user_special_dir() returns NULL and
we would insert NULL into the string array. That would cause the code
reading it to assume the end of the array was reached.
Go through a temporary array instead to build it.
https://bugzilla.gnome.org/show_bug.cgi?id=733489
When enabling DLNA, also make sure to enable the plugin that
we use to export the media to the TV or set-top-box, otherwise
rygel won't export anything.
https://bugzilla.gnome.org/show_bug.cgi?id=708055
Ensure Rygel is started when the Media Sharing option is enabled and
stopped when it is disabled. This also adds and removes Rygel from the
autostart directory as appropriate.
https://bugzilla.gnome.org/show_bug.cgi?id=692702