|
|
77c73b |
From 36a648db0af05be579190d98c96cfb6b7bcc6ebd Mon Sep 17 00:00:00 2001
|
|
|
77c73b |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
77c73b |
Date: Mon, 9 Oct 2017 13:11:47 +0200
|
|
|
77c73b |
Subject: [PATCH 01/12] fmradio: Fix build with GStreamer master
|
|
|
77c73b |
|
|
|
77c73b |
The plugin description is not supposed to be a string constant, but an
|
|
|
77c73b |
unescaped string, to be concatenated with function names.
|
|
|
77c73b |
|
|
|
77c73b |
This used to be acceptable (though would have warned), but breaks with
|
|
|
77c73b |
the GStreamer 1.13 development branch.
|
|
|
77c73b |
|
|
|
77c73b |
rb-fm-radio-gst-src.c:181:6: error: pasting ""rbsilencesrc"" and "_get_desc" does not give a valid preprocessing token
|
|
|
77c73b |
"rbsilencesrc",
|
|
|
77c73b |
^
|
|
|
77c73b |
|
|
|
77c73b |
https://bugzilla.gnome.org/show_bug.cgi?id=788706
|
|
|
77c73b |
---
|
|
|
77c73b |
plugins/fmradio/rb-fm-radio-gst-src.c | 2 +-
|
|
|
77c73b |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
77c73b |
|
|
|
77c73b |
diff --git a/plugins/fmradio/rb-fm-radio-gst-src.c b/plugins/fmradio/rb-fm-radio-gst-src.c
|
|
|
77c73b |
index 09d709c28..88abdaf35 100644
|
|
|
77c73b |
--- a/plugins/fmradio/rb-fm-radio-gst-src.c
|
|
|
77c73b |
+++ b/plugins/fmradio/rb-fm-radio-gst-src.c
|
|
|
77c73b |
@@ -178,7 +178,7 @@ plugin_init (GstPlugin *plugin)
|
|
|
77c73b |
|
|
|
77c73b |
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
77c73b |
GST_VERSION_MINOR,
|
|
|
77c73b |
- "rbsilencesrc",
|
|
|
77c73b |
+ rbsilencesrc,
|
|
|
77c73b |
"element to output silence",
|
|
|
77c73b |
plugin_init,
|
|
|
77c73b |
VERSION,
|
|
|
77c73b |
--
|
|
|
77c73b |
2.17.0
|
|
|
77c73b |
|
|
|
77c73b |
|
|
|
77c73b |
From 355e3c40efe47f6f90d12afb6590caf85db62487 Mon Sep 17 00:00:00 2001
|
|
|
77c73b |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
77c73b |
Date: Mon, 24 Apr 2017 16:21:41 +0200
|
|
|
77c73b |
Subject: [PATCH 02/12] mmkeys: media-player-keys: Fix usage to match API
|
|
|
77c73b |
documentation
|
|
|
77c73b |
|
|
|
77c73b |
See https://bugzilla.gnome.org/show_bug.cgi?id=781326
|
|
|
77c73b |
|
|
|
77c73b |
https://bugzilla.gnome.org/show_bug.cgi?id=781664
|
|
|
77c73b |
---
|
|
|
77c73b |
plugins/mmkeys/rb-mmkeys-plugin.c | 2 +-
|
|
|
77c73b |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
77c73b |
|
|
|
77c73b |
diff --git a/plugins/mmkeys/rb-mmkeys-plugin.c b/plugins/mmkeys/rb-mmkeys-plugin.c
|
|
|
77c73b |
index 46431584f..058b82f0e 100644
|
|
|
77c73b |
--- a/plugins/mmkeys/rb-mmkeys-plugin.c
|
|
|
77c73b |
+++ b/plugins/mmkeys/rb-mmkeys-plugin.c
|
|
|
77c73b |
@@ -385,7 +385,7 @@ impl_activate (PeasActivatable *pplugin)
|
|
|
77c73b |
plugin->proxy = g_dbus_proxy_new_sync (bus,
|
|
|
77c73b |
G_DBUS_PROXY_FLAGS_NONE,
|
|
|
77c73b |
NULL,
|
|
|
77c73b |
- "org.gnome.SettingsDaemon",
|
|
|
77c73b |
+ "org.gnome.SettingsDaemon.MediaKeys",
|
|
|
77c73b |
"/org/gnome/SettingsDaemon/MediaKeys",
|
|
|
77c73b |
"org.gnome.SettingsDaemon.MediaKeys",
|
|
|
77c73b |
NULL,
|
|
|
77c73b |
--
|
|
|
77c73b |
2.17.0
|
|
|
77c73b |
|
|
|
77c73b |
|
|
|
77c73b |
From 19d604093667139c6660d9452b4037a761bf75e0 Mon Sep 17 00:00:00 2001
|
|
|
77c73b |
From: gkrithi8 <gkrithi8@gmail.com>
|
|
|
77c73b |
Date: Thu, 26 Oct 2017 02:27:38 +0530
|
|
|
77c73b |
Subject: [PATCH 03/12] brasero-disc-recorder: Fix invalid object reference
|
|
|
77c73b |
warnings
|
|
|
77c73b |
|
|
|
77c73b |
https://bugzilla.gnome.org/show_bug.cgi?id=789494
|
|
|
77c73b |
---
|
|
|
77c73b |
plugins/brasero-disc-recorder/rb-disc-recorder-plugin.c | 2 +-
|
|
|
77c73b |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
77c73b |
|
|
|
77c73b |
diff --git a/plugins/brasero-disc-recorder/rb-disc-recorder-plugin.c b/plugins/brasero-disc-recorder/rb-disc-recorder-plugin.c
|
|
|
77c73b |
index 8608e84fd..a89d87a70 100644
|
|
|
77c73b |
--- a/plugins/brasero-disc-recorder/rb-disc-recorder-plugin.c
|
|
|
77c73b |
+++ b/plugins/brasero-disc-recorder/rb-disc-recorder-plugin.c
|
|
|
77c73b |
@@ -558,7 +558,7 @@ update_source (RBDiscRecorderPlugin *pi,
|
|
|
77c73b |
RBDisplayPage *selected_page;
|
|
|
77c73b |
const char *page_type;
|
|
|
77c73b |
|
|
|
77c73b |
- if (pi->selected_page != NULL && RB_IS_SOURCE (pi->selected_page)) {
|
|
|
77c73b |
+ if (pi->selected_page != NULL && RB_IS_PLAYLIST_SOURCE (pi->selected_page)) {
|
|
|
77c73b |
RhythmDBQueryModel *model;
|
|
|
77c73b |
|
|
|
77c73b |
g_object_get (pi->selected_page, "query-model", &model, NULL);
|
|
|
77c73b |
--
|
|
|
77c73b |
2.17.0
|
|
|
77c73b |
|
|
|
77c73b |
|
|
|
77c73b |
From 00970203e760f9ae43c31087706bd31b2b395dcb Mon Sep 17 00:00:00 2001
|
|
|
77c73b |
From: gkrithi8 <gkrithi8@gmail.com>
|
|
|
77c73b |
Date: Mon, 30 Oct 2017 02:25:09 +0530
|
|
|
77c73b |
Subject: [PATCH 04/12] song-info: fix the signal name used for entry deletion
|
|
|
77c73b |
|
|
|
77c73b |
https://bugzilla.gnome.org/show_bug.cgi?id=789632
|
|
|
77c73b |
---
|
|
|
77c73b |
widgets/rb-song-info.c | 3 ++-
|
|
|
77c73b |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
77c73b |
|
|
|
77c73b |
diff --git a/widgets/rb-song-info.c b/widgets/rb-song-info.c
|
|
|
77c73b |
index 54810e0b7..202f3d36e 100644
|
|
|
77c73b |
--- a/widgets/rb-song-info.c
|
|
|
77c73b |
+++ b/widgets/rb-song-info.c
|
|
|
77c73b |
@@ -733,6 +733,7 @@ rb_song_info_set_source_internal (RBSongInfo *song_info,
|
|
|
77c73b |
|
|
|
77c73b |
g_object_get (G_OBJECT (song_info->priv->query_model), "db", &song_info->priv->db, NULL);
|
|
|
77c73b |
|
|
|
77c73b |
+ rb_song_info_query_model_changed_cb (G_OBJECT (song_info->priv->source), NULL, song_info);
|
|
|
77c73b |
rb_song_info_base_query_model_changed_cb (G_OBJECT (song_info->priv->source), NULL, song_info);
|
|
|
77c73b |
}
|
|
|
77c73b |
|
|
|
77c73b |
@@ -1514,7 +1515,7 @@ rb_song_info_query_model_changed_cb (GObject *source,
|
|
|
77c73b |
"row-changed", G_CALLBACK (rb_song_info_query_model_inserted_cb),
|
|
|
77c73b |
song_info, 0);
|
|
|
77c73b |
g_signal_connect_object (G_OBJECT (song_info->priv->query_model),
|
|
|
77c73b |
- "entry-deleted", G_CALLBACK (rb_song_info_query_model_deleted_cb),
|
|
|
77c73b |
+ "post-entry-delete", G_CALLBACK (rb_song_info_query_model_deleted_cb),
|
|
|
77c73b |
song_info, 0);
|
|
|
77c73b |
g_signal_connect_object (G_OBJECT (song_info->priv->query_model),
|
|
|
77c73b |
"rows-reordered", G_CALLBACK (rb_song_info_query_model_reordered_cb),
|
|
|
77c73b |
--
|
|
|
77c73b |
2.17.0
|
|
|
77c73b |
|
|
|
77c73b |
|
|
|
77c73b |
From 223bafcc98a33262d70adc325f3393ac8f4b3ecc Mon Sep 17 00:00:00 2001
|
|
|
77c73b |
From: gkrithi8 <gkrithi8@gmail.com>
|
|
|
77c73b |
Date: Tue, 31 Oct 2017 17:06:58 +0530
|
|
|
77c73b |
Subject: [PATCH 05/12] shell: remove extra pixbuf unref
|
|
|
77c73b |
|
|
|
77c73b |
https://bugzilla.gnome.org/show_bug.cgi?id=789706
|
|
|
77c73b |
---
|
|
|
77c73b |
shell/rb-shell.c | 1 -
|
|
|
77c73b |
1 file changed, 1 deletion(-)
|
|
|
77c73b |
|
|
|
77c73b |
diff --git a/shell/rb-shell.c b/shell/rb-shell.c
|
|
|
77c73b |
index 7ae022795..734b90dcb 100644
|
|
|
77c73b |
--- a/shell/rb-shell.c
|
|
|
77c73b |
+++ b/shell/rb-shell.c
|
|
|
77c73b |
@@ -375,7 +375,6 @@ load_external_art_cb (RBExtDB *store, GValue *value, RBShell *shell)
|
|
|
77c73b |
|
|
|
77c73b |
pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
|
|
|
77c73b |
if (accept_art_pixbuf (pixbuf) == FALSE) {
|
|
|
77c73b |
- g_object_unref (pixbuf);
|
|
|
77c73b |
g_object_unref (loader);
|
|
|
77c73b |
return NULL;
|
|
|
77c73b |
}
|
|
|
77c73b |
--
|
|
|
77c73b |
2.17.0
|
|
|
77c73b |
|
|
|
77c73b |
|
|
|
77c73b |
From 2604eeb2338a4da7a95f9b6d46223323c864ddf2 Mon Sep 17 00:00:00 2001
|
|
|
77c73b |
From: gkrithi8 <gkrithi8@gmail.com>
|
|
|
77c73b |
Date: Mon, 27 Nov 2017 13:31:39 +0530
|
|
|
77c73b |
Subject: [PATCH 06/12] ext-db: fix crash when store request processing fails
|
|
|
77c73b |
|
|
|
77c73b |
https://bugzilla.gnome.org/show_bug.cgi?id=727670
|
|
|
77c73b |
---
|
|
|
77c73b |
metadata/rb-ext-db.c | 6 +++++-
|
|
|
77c73b |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
77c73b |
|
|
|
77c73b |
diff --git a/metadata/rb-ext-db.c b/metadata/rb-ext-db.c
|
|
|
77c73b |
index 3e241e609..7d8e01573 100644
|
|
|
77c73b |
--- a/metadata/rb-ext-db.c
|
|
|
77c73b |
+++ b/metadata/rb-ext-db.c
|
|
|
77c73b |
@@ -954,7 +954,11 @@ do_store_request (GSimpleAsyncResult *result, GObject *object, GCancellable *can
|
|
|
77c73b |
*/
|
|
|
77c73b |
g_signal_emit (store, signals[STORE], 0, req->value, &req->data);
|
|
|
77c73b |
|
|
|
77c73b |
- rb_debug ("stored value into encoded data of type %s", G_VALUE_TYPE_NAME (req->data));
|
|
|
77c73b |
+ if (req->data != NULL) {
|
|
|
77c73b |
+ rb_debug ("stored value into encoded data of type %s", G_VALUE_TYPE_NAME (req->data));
|
|
|
77c73b |
+ } else {
|
|
|
77c73b |
+ rb_debug ("failed to store value");
|
|
|
77c73b |
+ }
|
|
|
77c73b |
} else {
|
|
|
77c73b |
/* indicates we actually didn't get anything, as opposed to communication errors etc.
|
|
|
77c73b |
* providers just shouldn't call rb_ext_db_store_* in that case.
|
|
|
77c73b |
--
|
|
|
77c73b |
2.17.0
|
|
|
77c73b |
|
|
|
77c73b |
|
|
|
77c73b |
From a6f696f195b3c0aba63267c250ee15ccb058a8a9 Mon Sep 17 00:00:00 2001
|
|
|
77c73b |
From: Jonathan Matthew <jonathan@d14n.org>
|
|
|
77c73b |
Date: Tue, 30 Jan 2018 08:20:31 +1000
|
|
|
77c73b |
Subject: [PATCH 07/12] xfade: schedule stream reap after EOS
|
|
|
77c73b |
|
|
|
77c73b |
This stops streams hanging around in pending-remove state until
|
|
|
77c73b |
the stream after the following stream starts,
|
|
|
77c73b |
---
|
|
|
77c73b |
backends/gstreamer/rb-player-gst-xfade.c | 1 +
|
|
|
77c73b |
1 file changed, 1 insertion(+)
|
|
|
77c73b |
|
|
|
77c73b |
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
|
|
|
77c73b |
index d553397ce..420cf7f65 100644
|
|
|
77c73b |
--- a/backends/gstreamer/rb-player-gst-xfade.c
|
|
|
77c73b |
+++ b/backends/gstreamer/rb-player-gst-xfade.c
|
|
|
77c73b |
@@ -1831,6 +1831,7 @@ rb_player_gst_xfade_bus_cb (GstBus *bus, GstMessage *message, RBPlayerGstXFade *
|
|
|
77c73b |
* message on the stream thread and now.
|
|
|
77c73b |
*/
|
|
|
77c73b |
start_waiting_eos_streams (player);
|
|
|
77c73b |
+ schedule_stream_reap (player);
|
|
|
77c73b |
} else {
|
|
|
77c73b |
/* no need to emit EOS here, we already know what to do next */
|
|
|
77c73b |
rb_debug ("got EOS message for stream %s in REUSING state", stream->uri);
|
|
|
77c73b |
--
|
|
|
77c73b |
2.17.0
|
|
|
77c73b |
|
|
|
77c73b |
|
|
|
77c73b |
From f984934cfcbda9253bf26460163a546d8da69a01 Mon Sep 17 00:00:00 2001
|
|
|
77c73b |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
77c73b |
Date: Wed, 6 Jun 2018 10:48:52 +0200
|
|
|
77c73b |
Subject: [PATCH 08/12] daap: Fix build warning
|
|
|
77c73b |
MIME-Version: 1.0
|
|
|
77c73b |
Content-Type: text/plain; charset=UTF-8
|
|
|
77c73b |
Content-Transfer-Encoding: 8bit
|
|
|
77c73b |
|
|
|
77c73b |
Replace strncpy with memcpy to avoid adding a NUL-byte in the string.
|
|
|
77c73b |
|
|
|
77c73b |
rhythmbox/plugins/daap/rb-daap-src.c: In function ‘rb_daap_src_change_state’:
|
|
|
77c73b |
rhythmbox/plugins/daap/rb-daap-src.c:286:4: error: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Werror=stringop-truncation]
|
|
|
77c73b |
strncpy (httpuri, http, 4);
|
|
|
77c73b |
^~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
77c73b |
---
|
|
|
77c73b |
plugins/daap/rb-daap-src.c | 2 +-
|
|
|
77c73b |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
77c73b |
|
|
|
77c73b |
diff --git a/plugins/daap/rb-daap-src.c b/plugins/daap/rb-daap-src.c
|
|
|
77c73b |
index 99a55caf4..002ac6a00 100644
|
|
|
77c73b |
--- a/plugins/daap/rb-daap-src.c
|
|
|
77c73b |
+++ b/plugins/daap/rb-daap-src.c
|
|
|
77c73b |
@@ -283,7 +283,7 @@ rb_daap_src_change_state (GstElement *element, GstStateChange transition)
|
|
|
77c73b |
|
|
|
77c73b |
/* Set daap://... URI as http:// on souphttpsrc to ready connection. */
|
|
|
77c73b |
httpuri = g_strdup (src->daap_uri);
|
|
|
77c73b |
- strncpy (httpuri, http, 4);
|
|
|
77c73b |
+ memcpy (httpuri, http, 4);
|
|
|
77c73b |
|
|
|
77c73b |
g_object_set (src->souphttpsrc, "location", httpuri, NULL);
|
|
|
77c73b |
g_free (httpuri);
|
|
|
77c73b |
--
|
|
|
77c73b |
2.17.0
|
|
|
77c73b |
|
|
|
77c73b |
|
|
|
77c73b |
From a73dbae82e3b3a782d36261fa2676cce1f589e45 Mon Sep 17 00:00:00 2001
|
|
|
77c73b |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
77c73b |
Date: Wed, 6 Jun 2018 11:34:52 +0200
|
|
|
77c73b |
Subject: [PATCH 09/12] build: Remove -Wcast-align warning
|
|
|
77c73b |
|
|
|
77c73b |
It generates a false positive error message when trying to compile on
|
|
|
77c73b |
ARM:
|
|
|
77c73b |
/usr/include/gstreamer-1.0/gst/gstbuffer.h: In function 'gst_buffer_ref':
|
|
|
77c73b |
/usr/include/gstreamer-1.0/gst/gstbuffer.h:429:10: error: cast increases required alignment of target type [-Werror=cast-align]
|
|
|
77c73b |
return (GstBuffer *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (buf));
|
|
|
77c73b |
^
|
|
|
77c73b |
|
|
|
77c73b |
See https://bugzilla.gnome.org/show_bug.cgi?id=767255
|
|
|
77c73b |
---
|
|
|
77c73b |
configure.ac | 2 +-
|
|
|
77c73b |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
77c73b |
|
|
|
77c73b |
diff --git a/configure.ac b/configure.ac
|
|
|
77c73b |
index 746dfb49e..7124db904 100644
|
|
|
77c73b |
--- a/configure.ac
|
|
|
77c73b |
+++ b/configure.ac
|
|
|
77c73b |
@@ -469,7 +469,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
|
|
|
77c73b |
-Wunused-label -Wunused-value \
|
|
|
77c73b |
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
|
|
|
77c73b |
-Wnested-externs -Wpointer-arith \
|
|
|
77c73b |
- -Wcast-align -Wformat-security -Wall \
|
|
|
77c73b |
+ -Wformat-security -Wall \
|
|
|
77c73b |
-Werror -Wno-deprecated-declarations -std=gnu89"
|
|
|
77c73b |
|
|
|
77c73b |
if echo "$CFLAGS" | grep -q -- '-O' && echo "$CFLAGS" | grep -q -v -- '-O0'; then
|
|
|
77c73b |
--
|
|
|
77c73b |
2.17.0
|
|
|
77c73b |
|
|
|
77c73b |
|
|
|
77c73b |
From 0994e76b65d0533bd148cab5631362202602b28f Mon Sep 17 00:00:00 2001
|
|
|
77c73b |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
77c73b |
Date: Tue, 12 Jun 2018 15:16:29 +0200
|
|
|
77c73b |
Subject: [PATCH 12/12] sources: Fix state of initial import not reflecting
|
|
|
77c73b |
reality
|
|
|
77c73b |
|
|
|
77c73b |
When rhythmbox is started with an empty "locations" setting, it will
|
|
|
77c73b |
rewrite the setting with the user's music folder as the only location.
|
|
|
77c73b |
This will start an import job from the setting's "changed" signal. But
|
|
|
77c73b |
we already start another import job from the "load-complete" signal of
|
|
|
77c73b |
the database.
|
|
|
77c73b |
|
|
|
77c73b |
Make sure only the load-complete signal triggers an import when setting
|
|
|
77c73b |
the "locations" setting is empty on startup.
|
|
|
77c73b |
---
|
|
|
77c73b |
sources/rb-library-source.c | 29 +++++++++++++----------------
|
|
|
77c73b |
1 file changed, 13 insertions(+), 16 deletions(-)
|
|
|
77c73b |
|
|
|
77c73b |
diff --git a/sources/rb-library-source.c b/sources/rb-library-source.c
|
|
|
77c73b |
index 15ba523d2..378a3e006 100644
|
|
|
77c73b |
--- a/sources/rb-library-source.c
|
|
|
77c73b |
+++ b/sources/rb-library-source.c
|
|
|
77c73b |
@@ -284,6 +284,10 @@ db_load_complete_cb (RhythmDB *db, RBLibrarySource *source)
|
|
|
77c73b |
if (source->priv->do_initial_import) {
|
|
|
77c73b |
const char *music_dir;
|
|
|
77c73b |
char *music_dir_uri;
|
|
|
77c73b |
+ const char *set_locations[2];
|
|
|
77c73b |
+
|
|
|
77c73b |
+ g_signal_handlers_block_by_func (source->priv->db_settings,
|
|
|
77c73b |
+ G_CALLBACK (db_settings_changed_cb), source);
|
|
|
77c73b |
|
|
|
77c73b |
music_dir = rb_music_dir ();
|
|
|
77c73b |
music_dir_uri = g_filename_to_uri (music_dir, NULL, NULL);
|
|
|
77c73b |
@@ -293,6 +297,13 @@ db_load_complete_cb (RhythmDB *db, RBLibrarySource *source)
|
|
|
77c73b |
g_mkdir_with_parents (music_dir, 0700);
|
|
|
77c73b |
}
|
|
|
77c73b |
|
|
|
77c73b |
+ set_locations[0] = music_dir_uri;
|
|
|
77c73b |
+ set_locations[1] = NULL;
|
|
|
77c73b |
+ g_settings_set_strv (source->priv->db_settings, "locations", set_locations);
|
|
|
77c73b |
+
|
|
|
77c73b |
+ g_signal_handlers_unblock_by_func (source->priv->db_settings,
|
|
|
77c73b |
+ G_CALLBACK (db_settings_changed_cb), source);
|
|
|
77c73b |
+
|
|
|
77c73b |
/* import anything that's already in there */
|
|
|
77c73b |
job = maybe_create_import_job (source);
|
|
|
77c73b |
rhythmdb_import_job_add_uri (job, music_dir_uri);
|
|
|
77c73b |
@@ -344,22 +355,8 @@ rb_library_source_constructed (GObject *object)
|
|
|
77c73b |
|
|
|
77c73b |
/* Set up the default library location if there's no library location set */
|
|
|
77c73b |
locations = g_settings_get_strv (source->priv->db_settings, "locations");
|
|
|
77c73b |
- if (g_strv_length (locations) == 0) {
|
|
|
77c73b |
- char *music_dir_uri;
|
|
|
77c73b |
-
|
|
|
77c73b |
- music_dir_uri = g_filename_to_uri (rb_music_dir (), NULL, NULL);
|
|
|
77c73b |
- if (music_dir_uri != NULL) {
|
|
|
77c73b |
- const char *set_locations[2];
|
|
|
77c73b |
-
|
|
|
77c73b |
- set_locations[0] = music_dir_uri;
|
|
|
77c73b |
- set_locations[1] = NULL;
|
|
|
77c73b |
- g_settings_set_strv (source->priv->db_settings, "locations", set_locations);
|
|
|
77c73b |
-
|
|
|
77c73b |
- source->priv->do_initial_import = TRUE;
|
|
|
77c73b |
-
|
|
|
77c73b |
- g_free (music_dir_uri);
|
|
|
77c73b |
- }
|
|
|
77c73b |
- }
|
|
|
77c73b |
+ if (g_strv_length (locations) == 0)
|
|
|
77c73b |
+ source->priv->do_initial_import = TRUE;
|
|
|
77c73b |
g_strfreev (locations);
|
|
|
77c73b |
|
|
|
77c73b |
songs = rb_source_get_entry_view (RB_SOURCE (source));
|
|
|
77c73b |
--
|
|
|
77c73b |
2.17.0
|
|
|
77c73b |
|