summaryrefslogtreecommitdiff
path: root/src/MediaDataRepresentation.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:55:20 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:55:20 +0100
commitf6140ff1c9ec493d947da5b346508846e7a1a06f (patch)
treec01b9164ee4b0d46b6670ccee45f6181c6237d7f /src/MediaDataRepresentation.vala
parent0f67b3cc674377559e66c5a6729fd499049a992f (diff)
parent2492891f112caac6076ce49721d9d5d78a152c3a (diff)
Update upstream source from tag 'upstream/0.26.4'
Update to upstream version '0.26.4' with Debian dir fae3cc48a8ec2f37979206f90dc828cbebee14c4
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) {