rhythmbox r6035 - in trunk: . podcast
- From: jmatthew svn gnome org
- To: svn-commits-list gnome org
- Subject: rhythmbox r6035 - in trunk: . podcast
- Date: Tue, 11 Nov 2008 01:49:14 +0000 (UTC)
Author: jmatthew
Date: Tue Nov 11 01:49:13 2008
New Revision: 6035
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=6035&view=rev
Log:
2008-11-11 Jonathan Matthew <jonathan d14n org>
* podcast/rb-podcast-manager.c: (download_file_info_cb):
When replacing a downloaded podcast file, delete the existing file
first.
Modified:
trunk/ChangeLog
trunk/podcast/rb-podcast-manager.c
Modified: trunk/podcast/rb-podcast-manager.c
==============================================================================
--- trunk/podcast/rb-podcast-manager.c (original)
+++ trunk/podcast/rb-podcast-manager.c Tue Nov 11 01:49:13 2008
@@ -867,6 +867,13 @@
data->download_offset = local_size;
} else {
rb_debug ("replacing local file as it's larger than the download");
+ g_file_delete (data->destination, NULL, &error);
+ if (error != NULL) {
+ g_warning ("Removing existing download: %s", error->message);
+ g_error_free (error);
+ rb_podcast_manager_abort_download (data);
+ return;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]