diff options
author | Jens Georg <mail@jensge.org> | 2012-07-09 13:33:51 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2012-07-17 08:45:15 +0200 |
commit | 3c691be0968186468d45abeaf99a43f9f737dd84 (patch) | |
tree | 474aa958c819173f7e241c624105fd047429aa36 /src | |
parent | 7af47433a84981b97bbbd0a3c2a81e88110c8cac (diff) | |
download | rygel-3c691be0968186468d45abeaf99a43f9f737dd84.tar.gz |
core: Early exit on missing thumbnail
If we need to ask tumbler for a thumbnail, we can just exit. There's no
need to do the filesystem call afterwards. It will fail anyway.
Diffstat (limited to 'src')
-rw-r--r-- | src/librygel-core/rygel-thumbnailer.vala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librygel-core/rygel-thumbnailer.vala b/src/librygel-core/rygel-thumbnailer.vala index 35d55458..db6ea204 100644 --- a/src/librygel-core/rygel-thumbnailer.vala +++ b/src/librygel-core/rygel-thumbnailer.vala @@ -107,6 +107,9 @@ internal class Rygel.Thumbnailer : GLib.Object { // send a request to create thumbnail if it does not exist if ((this.thumbler != null) && (!file.query_exists ())) { this.thumbler.queue_thumbnail_task (uri, mime_type); + + throw new ThumbnailerError.NO_THUMBNAIL + (_("No thumbnail available")); } var info = file.query_info (FileAttribute.ACCESS_CAN_READ + "," + |