[rhythmbox: 1/2] podcast: allow cancellation even before download starts
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox: 1/2] podcast: allow cancellation even before download starts
- Date: Sat, 20 Jun 2020 11:59:50 +0000 (UTC)
commit 4695a9b0c8a7adea934d6ec5a3ebc60ebb476ecb
Author: crvi <crvisqr gmail com>
Date: Fri Feb 28 10:31:42 2020 +0530
podcast: allow cancellation even before download starts
Closes: #1780
podcast/rb-podcast-manager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/podcast/rb-podcast-manager.c b/podcast/rb-podcast-manager.c
index 6d397437b..55ef4d541 100644
--- a/podcast/rb-podcast-manager.c
+++ b/podcast/rb-podcast-manager.c
@@ -767,6 +767,7 @@ rb_podcast_manager_next_file (RBPodcastManager * pd)
}
data->source = g_file_new_for_uri (location);
+ data->cancel = g_cancellable_new ();
g_file_read_async (data->source,
0,
@@ -994,7 +995,6 @@ download_podcast (GFileInfo *src_info, RBPodcastManagerInfo *data)
g_signal_emit (data->pd, rb_podcast_manager_signals[START_DOWNLOAD],
0, data->entry);
- data->cancel = g_cancellable_new ();
data->thread = g_thread_new ("podcast-download",
(GThreadFunc) podcast_download_thread,
data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]