[totem-pl-parser] disc: Don't parse anything but ISOs as ISOs
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] disc: Don't parse anything but ISOs as ISOs
- Date: Mon, 1 Jul 2013 13:55:51 +0000 (UTC)
commit 600100b25474f5af29514501f8995aa69cf2b89a
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 21 18:50:08 2013 +0200
disc: Don't parse anything but ISOs as ISOs
If we encountered a non-ISO9660 image masquerading as one,
but in a format supported by libarchive, we would have ended
up tagging it as a DVD without being able to read it later on.
https://bugzilla.gnome.org/show_bug.cgi?id=702828
plparse/totem-disc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plparse/totem-disc.c b/plparse/totem-disc.c
index 6ff99a2..e78f635 100644
--- a/plparse/totem-disc.c
+++ b/plparse/totem-disc.c
@@ -282,8 +282,7 @@ cd_cache_check_archive (CdCache *cache,
int r;
a = archive_read_new();
- archive_read_support_filter_all(a);
- archive_read_support_format_all(a);
+ archive_read_support_format_iso9660(a);
r = archive_read_open_filename(a, filename, 10240);
if (r != ARCHIVE_OK) {
g_set_error (error, TOTEM_PL_PARSER_ERROR, TOTEM_PL_PARSER_ERROR_MOUNT_FAILED,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]