[rhythmbox] generic-player: don't load playlists if there's no playlist path



commit ad2aef3451af88847cd287616256cd0f3b30c728
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Mar 9 18:22:11 2014 +1000

    generic-player: don't load playlists if there's no playlist path
    
    scanning the whole device can take a very long time, and probably
    wasn't really the right thing to do in the first place.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692485

 plugins/generic-player/rb-generic-player-source.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/generic-player/rb-generic-player-source.c 
b/plugins/generic-player/rb-generic-player-source.c
index d8ecf9c..7d7dfbf 100644
--- a/plugins/generic-player/rb-generic-player-source.c
+++ b/plugins/generic-player/rb-generic-player-source.c
@@ -930,7 +930,8 @@ default_load_playlists (RBGenericPlayerSource *source)
                full_playlist_path = rb_uri_append_path (mount_path, playlist_path);
                rb_debug ("constructed playlist search path %s", full_playlist_path);
        } else {
-               full_playlist_path = g_strdup (mount_path);
+               g_free (playlist_path);
+               return;
        }
 
        /* only try to load playlists if the device has at least one playlist format */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]