summaryrefslogtreecommitdiff
path: root/src/MediaDataRepresentation.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-15 20:38:57 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-15 20:38:57 +0100
commitf1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (patch)
treea1f2ab30332a6383b0677bfcc2aec687b98851d6 /src/MediaDataRepresentation.vala
parentf8ca421bdacee8851965a4b802ada1d2366bdbc1 (diff)
parentede50c561ec9811704821a9ea0f04c3d6c20b5af (diff)
Merge branch 'release/0.26.4-1'0.26.4-1
Diffstat (limited to 'src/MediaDataRepresentation.vala')
-rw-r--r--src/MediaDataRepresentation.vala11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/MediaDataRepresentation.vala b/src/MediaDataRepresentation.vala
index 484404c..e78894f 100644
--- a/src/MediaDataRepresentation.vala
+++ b/src/MediaDataRepresentation.vala
@@ -723,6 +723,17 @@ public abstract class MediaSourceCollection : DatabaseSourceCollection {
// Note: we may get an exception even though the delete succeeded.
debug("Exception deleting file %s: %s", file.get_path(), err.message);
}
+
+ var masterfile = source.get_master_file();
+ if (masterfile != null) {
+ try {
+ masterfile.delete(null);
+ } catch (Error err) {
+ if (!(err is IOError.NOT_FOUND)) {
+ debug("Exception deleting master file %s: %s", masterfile.get_path(), err.message);
+ }
+ }
+ }
bool deleted = !file.query_exists();
if (!deleted && null != not_deleted) {