brasero r1095 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1095 - in trunk: . src
- Date: Thu, 14 Aug 2008 18:55:48 +0000 (UTC)
Author: philippr
Date: Thu Aug 14 18:55:47 2008
New Revision: 1095
URL: http://svn.gnome.org/viewvc/brasero?rev=1095&view=rev
Log:
Fixed a susp (RR) entry incorrectly read
* src/burn-susp.c (brasero_susp_RE), (brasero_susp_read):
Modified:
trunk/ChangeLog
trunk/src/burn-susp.c
Modified: trunk/src/burn-susp.c
==============================================================================
--- trunk/src/burn-susp.c (original)
+++ trunk/src/burn-susp.c Thu Aug 14 18:55:47 2008
@@ -130,6 +130,10 @@
return TRUE;
}
+/**
+ * All these entries are defined in rrip standards.
+ * They are mainly used for directory/file relocation.
+ */
static gboolean
brasero_susp_CL (BraseroSusp *susp,
BraseroSuspCtx *ctx)
@@ -146,6 +150,18 @@
}
static gboolean
+brasero_susp_RE (BraseroSusp *susp,
+ BraseroSuspCtx *ctx)
+{
+ /* Nothing to see here really this is just an indication.
+ * Check consistency though BP3 = "4" and BP4 = "1" */
+ if (susp->len != 4 || susp->version != 1)
+ return FALSE;
+
+ return TRUE;
+}
+
+static gboolean
brasero_susp_PL (BraseroSusp *susp,
BraseroSuspCtx *ctx)
{
@@ -194,8 +210,10 @@
result = brasero_susp_CL (susp, ctx);
else if (!memcmp (susp->signature, "PL", 2))
result = brasero_susp_PL (susp, ctx);
+
+ /* This is to indicate that the entry has been relocated */
else if (!memcmp (susp->signature, "RE", 2))
- result = brasero_susp_CL (susp, ctx);
+ result = brasero_susp_RE (susp, ctx);
if (!result)
goto error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]