brasero r1817 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1817 - in trunk: . src
- Date: Fri, 23 Jan 2009 16:58:30 +0000 (UTC)
Author: philippr
Date: Fri Jan 23 16:58:29 2009
New Revision: 1817
URL: http://svn.gnome.org/viewvc/brasero?rev=1817&view=rev
Log:
2009-01-23 Philippe Rouquier <ykw localhost localdomain>
Fix warnings
* src/brasero-project-manager.c (brasero_project_manager_open_uri):
Modified:
trunk/ChangeLog
trunk/src/brasero-project-manager.c
Modified: trunk/src/brasero-project-manager.c
==============================================================================
--- trunk/src/brasero-project-manager.c (original)
+++ trunk/src/brasero-project-manager.c Fri Jan 23 16:58:29 2009
@@ -868,6 +868,9 @@
/* FIXME: make that asynchronous */
/* NOTE: don't follow symlink because we want to identify them */
file = g_file_new_for_commandline_arg (uri_arg);
+ if (file)
+ return BRASERO_PROJECT_TYPE_INVALID;
+
info = g_file_query_info (file,
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE ","
G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK ","
@@ -876,6 +879,11 @@
NULL,
NULL);
+ if (!info) {
+ g_object_unref (file);
+ return BRASERO_PROJECT_TYPE_INVALID;
+ }
+
/* if that's a symlink, redo it on its target to get the real mime type
* that usually also depends on the extension of the target:
* ex: an iso file with the extension .iso will be seen as octet-stream
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]