diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-12 16:48:02 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-12 16:48:02 +0100 |
commit | abdaad68fb94e2d61448a6dfc14847df8a2c32b9 (patch) | |
tree | 26855c5dd3bfffdbf319d5ba4a38223a28de3e7c /src/MediaDataRepresentation.vala | |
parent | 0f67b3cc674377559e66c5a6729fd499049a992f (diff) | |
parent | dd7f98a232efe86f6e6055119c9414a0f9d9e67b (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/MediaDataRepresentation.vala')
-rw-r--r-- | src/MediaDataRepresentation.vala | 11 |
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) { |