[rhythmbox] rhythmdb: add ignore entries for special and mountable files



commit f8e17b9886fc086a1c3daf39c7d645a42d1e59a9
Author: Jonathan Matthew <jonathan d14n org>
Date:   Mon Oct 31 21:24:12 2016 +1000

    rhythmdb: add ignore entries for special and mountable files
    
    Import jobs expect entries to be created for all URIs they find, so
    without this an import would get stuck if it encountered a socket.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773695

 rhythmdb/rhythmdb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/rhythmdb/rhythmdb.c b/rhythmdb/rhythmdb.c
index b1828bb..03bd2a0 100644
--- a/rhythmdb/rhythmdb.c
+++ b/rhythmdb/rhythmdb.c
@@ -291,6 +291,7 @@ static void rhythmdb_add_to_stat_list (RhythmDB *db,
                                       RhythmDBEntryType *ignore_type,
                                       RhythmDBEntryType *error_type);
 static void free_entry_changes (GSList *entry_changes);
+static RhythmDBEntry *rhythmdb_add_import_error_entry (RhythmDB *db, RhythmDBEvent *event, RhythmDBEntryType 
*error_entry_type);
 
 static void perform_next_mount (RhythmDB *db);
 
@@ -2241,6 +2242,7 @@ rhythmdb_process_stat_event (RhythmDB *db,
        case G_FILE_TYPE_SPECIAL:
        case G_FILE_TYPE_MOUNTABLE:             /* hmm. */
                rb_debug ("ignoring stat results for %s: is special", rb_refstring_get (event->real_uri));
+               rhythmdb_add_import_error_entry (db, event, event->ignore_type);
                break;
        }
 


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