[totem-pl-parser] disc: Don't error out when libarchive fails to close



commit 254724230abb2f00148aed0918d51511a273e468
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 5 15:46:03 2012 +0100

    disc: Don't error out when libarchive fails to close
    
    It's unlikely to have an incidence on what we're doing.

 plparse/totem-disc.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/plparse/totem-disc.c b/plparse/totem-disc.c
index c3c0f7b..a63e922 100644
--- a/plparse/totem-disc.c
+++ b/plparse/totem-disc.c
@@ -309,12 +309,7 @@ cd_cache_check_archive (CdCache *cache,
     }
     archive_read_data_skip(a);
   }
-  r = archive_read_finish(a);
-  if (r != ARCHIVE_OK) {
-    g_set_error (error, TOTEM_PL_PARSER_ERROR, TOTEM_PL_PARSER_ERROR_MOUNT_FAILED,
-		 _("Failed to mount %s."), filename);
-    return FALSE;
-  }
+  archive_read_finish(a);
   return TRUE;
 #endif
 }



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