brasero r779 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r779 - in trunk: . src
- Date: Sun, 27 Apr 2008 12:03:05 +0100 (BST)
Author: philippr
Date: Sun Apr 27 11:03:05 2008
New Revision: 779
URL: http://svn.gnome.org/viewvc/brasero?rev=779&view=rev
Log:
Fix #520784 â Brasero does not recognize .bin in the same directory when .cue is selected
* src/burn-image-format.c
(brasero_image_format_get_cue_file_complement),
(brasero_image_format_get_toc_file_complement):
Modified:
trunk/ChangeLog
trunk/src/burn-image-format.c
Modified: trunk/src/burn-image-format.c
==============================================================================
--- trunk/src/burn-image-format.c (original)
+++ trunk/src/burn-image-format.c Sun Apr 27 11:03:05 2008
@@ -111,6 +111,22 @@
}
}
fclose (file);
+
+ /* check if the path is relative, if so then add the root path */
+ if (complement && !g_path_is_absolute (complement)) {
+ gchar *directory;
+ gchar *tmp;
+
+ directory = g_path_get_dirname (path);
+
+ tmp = complement;
+ complement = g_build_path (G_DIR_SEPARATOR_S,
+ directory,
+ complement,
+ NULL);
+ g_free (tmp);
+ }
+
return complement;
}
@@ -151,8 +167,23 @@
break;
}
}
-
fclose (file);
+
+ /* check if the path is relative, if so then add the root path */
+ if (complement && !g_path_is_absolute (complement)) {
+ gchar *directory;
+ gchar *tmp;
+
+ directory = g_path_get_dirname (path);
+
+ tmp = complement;
+ complement = g_build_path (G_DIR_SEPARATOR_S,
+ directory,
+ complement,
+ NULL);
+ g_free (tmp);
+ }
+
return complement;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]