if (values != null) {
for (int i = 0; i < values.length; i++) {
- if (values[i].holds(typeof (int))) {
+ if (values[i].holds (typeof (int))) {
rc = statement.bind_int (i + 1, values[i].get_int ());
} else if (values[i].holds (typeof (int64))) {
rc = statement.bind_int64 (i + 1, values[i].get_int64 ());
}
private bool process_children (GLib.List<FileInfo>? list) {
- if (list == null || this.cancellable.is_cancelled()) {
+ if (list == null || this.cancellable.is_cancelled ()) {
return false;
}
warning (_("failed to enumerate folder: %s"), err.message);
}
- cleanup_database (this.containers.peek_head() as DummyContainer);
+ cleanup_database (this.containers.peek_head () as DummyContainer);
this.do_update ();
}
this.media_db.remove_by_id (child);
}
} catch (DatabaseError err) {
- warning(_("Failed to get children of container %s: %s"),
- container.id,
- err.message);
+ warning (_("Failed to get children of container %s: %s"),
+ container.id,
+ err.message);
}
}
string content_type;
tag_list.get_string (MetadataExtractor.TAG_RYGEL_MIME,
out content_type);
- warning(_("File '%s' is of unknown format/type."),
+ warning (_("File '%s' is of unknown format/type."),
file.get_uri ());
warning (_("Trying to guess from content type %s"),
content_type);
}
} else {
// throw error. Taglist can't be empty
- warning(_("Got empty taglist for file %s"), file.get_uri ());
+ warning (_("Got empty taglist for file %s"), file.get_uri ());
return null;
}
children.add (get_object_from_statement (parent,
child_id,
statement));
- children.last() .parent_ref = parent;
+ children.last () .parent_ref = parent;
return true;
};
private void create_playbin_factory () {
debug ("Checking for gstreamer element 'playbin'...");
- var factory = ElementFactory.find("playbin2");
+ var factory = ElementFactory.find ("playbin2");
if (factory != null) {
debug (_("Using playbin2"));
} else {
uint max_count,
Cancellable? cancellable)
throws Error {
- return new Gee.ArrayList<MediaObject>();
+ return new Gee.ArrayList<MediaObject> ();
}
}
// either an error occured or the gconf key is not set
if (uris.size == 0) {
- debug(_("Nothing configured, using XDG special folders"));
+ debug (_("Nothing configured, using XDG special folders"));
UserDirectory[] xdg_directories = { UserDirectory.MUSIC,
UserDirectory.PICTURES,
UserDirectory.VIDEOS };
return uris;
}
- public static MediaContainer get_instance() {
+ public static MediaContainer get_instance () {
if (RootContainer.instance == null) {
try {
RootContainer.instance = new RootContainer ();
} catch (Error error) {
- warning(_("Failed to create instance of database"));
+ warning (_("Failed to create instance of database"));
RootContainer.instance = new NullContainer ();
}
}