[totem] rotation: Avoid warnings with HTTP streams



commit b882ad9d99b06e78eb87fe9b14802cb7ac5e4bf2
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 47fa8cd..a2b8315 100644
--- a/src/plugins/rotation/totem-rotation-plugin.vala
+++ b/src/plugins/rotation/totem-rotation-plugin.vala
@@ -157,6 +157,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]