[totem-pl-parser] plparse: Save everything we're told to in the XSPF file



commit 9baee21a71c7195d6d1ae322189fcd1039617eae
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Apr 26 18:42:21 2013 +0200

    plparse: Save everything we're told to in the XSPF file
    
    The saving part of the XSPF parser doesn't need to check
    whether the scheme is ignored, the front-end (which populates
    that list) can do that just as well.
    
    This fixes DVDs not being saved in the Totem session.

 plparse/totem-pl-parser-xspf.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/plparse/totem-pl-parser-xspf.c b/plparse/totem-pl-parser-xspf.c
index 3103a3d..7cbc76c 100644
--- a/plparse/totem-pl-parser-xspf.c
+++ b/plparse/totem-pl-parser-xspf.c
@@ -116,7 +116,6 @@ totem_pl_parser_save_xspf (TotemPlParser    *parser,
 
         while (valid) {
                char *uri, *uri_escaped, *relative;
-               GFile *file;
                guint i;
                gboolean wrote_ext;
 
@@ -130,16 +129,6 @@ totem_pl_parser_save_xspf (TotemPlParser    *parser,
                         continue;
                }
 
-                file = g_file_new_for_uri (uri);
-
-               if (totem_pl_parser_scheme_is_ignored (parser, file) != FALSE) {
-                       valid = totem_pl_playlist_iter_next (playlist, &iter);
-                       g_object_unref (file);
-                       g_free (uri);
-                       continue;
-               }
-               g_object_unref (file);
-
                /* Whether we already wrote the GNOME extensions section header
                 * for that particular track */
                wrote_ext = FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]