[totem-pl-parser] Fix getting a DVD title from remote directories
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] Fix getting a DVD title from remote directories
- Date: Thu, 26 Nov 2009 18:23:34 +0000 (UTC)
commit 37cd28ea1dc8b691161b6fced22a05782af81f00
Author: Bastien Nocera <hadess hadess net>
Date: Thu Nov 26 18:22:53 2009 +0000
Fix getting a DVD title from remote directories
plparse/totem-pl-parser-media.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plparse/totem-pl-parser-media.c b/plparse/totem-pl-parser-media.c
index 935aa72..c945316 100644
--- a/plparse/totem-pl-parser-media.c
+++ b/plparse/totem-pl-parser-media.c
@@ -237,12 +237,12 @@ totem_pl_parser_add_directory (TotemPlParser *parser,
uri = g_file_get_uri (file);
type = totem_cd_detect_type_from_dir (uri, &media_uri, NULL);
+ g_free (uri);
if (type != MEDIA_TYPE_DATA && type != MEDIA_TYPE_ERROR && media_uri != NULL) {
char *basename = NULL, *fname;
- fname = g_filename_from_uri (uri, NULL, NULL);
- g_free (uri);
+ fname = g_file_get_path (file);
if (fname != NULL) {
basename = g_filename_display_basename (fname);
g_free (fname);
@@ -285,7 +285,6 @@ totem_pl_parser_add_directory (TotemPlParser *parser,
}
g_list_free (list);
- g_free (uri);
return TOTEM_PL_PARSER_RESULT_SUCCESS;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]