GNOME Bugzilla – Bug 773466
Server: Do not transmit unplayable rhythmdb entries to the DMAP client
Last modified: 2016-10-25 11:35:38 UTC
Forked off from https://bugzilla.gnome.org/show_bug.cgi?id=773400. Currently, "Missing Files" in the DAAP server are listed in the DAAP client. Clicking on the entries in the client, results in the following error in the server. (rhythmbox:16746): libdmapsharing-WARNING **: Couldn't open file:///media/sf_dev/temp/Hans%20Zimmer/The%20Dark%20Knight%20Rises_%20Original%20Motion%20Picture%20Soundtrack/11%20Why%20Do%20We%20Fall_%201.mp3: Error opening file /media/sf_dev/temp/Hans Zimmer/The Dark Knight Rises_ Original Motion Picture Soundtrack/11 Why Do We Fall_ 1.mp3: No such file or directory. The missing entries should not be transmitted to the client, in the first place.
Created attachment 338393 [details] [review] [patch] Do not transmit unplayable rhythmdb entries to the DMAP client
Review of attachment 338393 [details] [review]: pushed with some changes as commit 04c30b9 ::: plugins/daap/rb-rhythmdb-dmap-db-adapter.c @@ +69,3 @@ DMAPRecord *record; ForeachAdapterData *foreach_adapter_data; + gchar *playback_uri; this should not be a gchar pointer @@ +71,3 @@ + gchar *playback_uri; + + /* Skip hidden entries */ useless comment @@ +75,3 @@ + return; + + /* Skip entries with no playback uri */ useless comment