[totem] uri: Simplify _get_full_path() code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] uri: Simplify _get_full_path() code
- Date: Wed, 28 Mar 2012 23:30:46 +0000 (UTC)
commit 088cd2cf46f97c1e8a3200b3dfcb20e9f9642ca0
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 29 01:09:38 2012 +0200
uri: Simplify _get_full_path() code
src/totem-uri.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/totem-uri.c b/src/totem-uri.c
index 2c93b52..c713eb7 100644
--- a/src/totem-uri.c
+++ b/src/totem-uri.c
@@ -259,12 +259,10 @@ totem_create_full_path (const char *path)
g_return_val_if_fail (path != NULL, NULL);
- if (strstr (path, "://") != NULL)
- return NULL;
- if (totem_is_special_mrl (path) != FALSE)
+ file = g_file_new_for_commandline_arg (path);
+ if (file == NULL)
return NULL;
- file = g_file_new_for_commandline_arg (path);
retval = g_file_get_uri (file);
g_object_unref (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]