[totem/gnome-3-8] rotation: Avoid warnings with HTTP streams
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-8] rotation: Avoid warnings with HTTP streams
- Date: Thu, 25 Jul 2013 17:13:55 +0000 (UTC)
commit ee692e780f3ee651b3123089f8da2616009f0607
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jul 25 18:43:39 2013 +0200
rotation: Avoid warnings with HTTP streams
They don't have support for XAttributes, and the gvfs-metadata
doesn't seem to proxy it.
src/plugins/rotation/totem-rotation-plugin.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/rotation/totem-rotation-plugin.vala b/src/plugins/rotation/totem-rotation-plugin.vala
index c2cded4..b794003 100644
--- a/src/plugins/rotation/totem-rotation-plugin.vala
+++ b/src/plugins/rotation/totem-rotation-plugin.vala
@@ -149,6 +149,8 @@ class RotationPlugin: GLib.Object, Peas.Activatable
private async void try_restore_state (string mrl)
{
var file = GLib.File.new_for_uri (mrl);
+ if (file.has_uri_scheme ("http"))
+ return;
try {
var file_info = yield file.query_info_async (GIO_ROTATION_FILE_ATTRIBUTE,
GLib.FileQueryInfoFlags.NONE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]