GNOME Bugzilla – Bug 707909
GUPnP-DLNA hangs when no backend is available
Last modified: 2019-02-22 06:00:59 UTC
The trick is that it only hangs the second time a process uses it to guess a profile. The first time an error is returned. So you won't notice this problem with gupnp-dlna-info-2.0. It can be easily reproduced with dLeyna though, using the dLeyna-renderer/test/cap.py test tool to push a file to a renderer. To reproduce: 1. Remove your backend, e.g., sudo rm /usr/local/lib/gupnp-dlna/libgstreamer.so 2. Start ./cap.py 3. Draw a little picture. 4. Push the picture to a renderer 5. Click push again The second push attempt will hang. The problem seems to be caused by load_metadata_backend which passes an incorrect value to g_once_init_leave.
Created attachment 254678 [details] [review] Fix hang if no backends are available Here's patch that should fix this issue.
Review of attachment 254678 [details] [review]: Sorry, that one went under the rader. Looks good.
Attachment 254678 [details] pushed as ca60c81 - Fix hang if no backends are available