[rygel] core: Only request thumbnails on local resources
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Only request thumbnails on local resources
- Date: Sat, 25 Feb 2012 13:22:18 +0000 (UTC)
commit 42aaeced212b6ea3ebf328261b1dcfa907a083ab
Author: Jens Georg <mail jensge org>
Date: Sat Feb 25 15:13:14 2012 +0200
core: Only request thumbnails on local resources
src/rygel/rygel-dbus-thumbnailer.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-dbus-thumbnailer.vala b/src/rygel/rygel-dbus-thumbnailer.vala
index acb30ee..0de15ef 100644
--- a/src/rygel/rygel-dbus-thumbnailer.vala
+++ b/src/rygel/rygel-dbus-thumbnailer.vala
@@ -57,8 +57,12 @@ internal class Rygel.DbusThumbnailer : GLib.Object {
THUMBNAILER_SERVICE);
}
- public void queue_thumbnail_task (string file_path, string mime) {
- this.uris.add (file_path);
+ public void queue_thumbnail_task (string uri, string mime) {
+ var file = File.new_for_uri (uri);
+ if (!file.is_native ()) {
+ return;
+ }
+ this.uris.add (uri);
this.mimes.add (mime);
if (this.timeout_id != 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]