[grilo-plugins] filesystem: Don't strip "extension" from title if it's a directory
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] filesystem: Don't strip "extension" from title if it's a directory
- Date: Mon, 18 Feb 2013 10:23:32 +0000 (UTC)
commit aad08e70b340c024cf94407258166b5f8641eb82
Author: Mike Ruprecht <mike ruprecht collabora co uk>
Date: Sat Feb 16 21:02:34 2013 -0600
filesystem: Don't strip "extension" from title if it's a directory
https://bugzilla.gnome.org/show_bug.cgi?id=694008
src/filesystem/grl-filesystem.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/filesystem/grl-filesystem.c b/src/filesystem/grl-filesystem.c
index a910611..45f3c8c 100644
--- a/src/filesystem/grl-filesystem.c
+++ b/src/filesystem/grl-filesystem.c
@@ -541,9 +541,11 @@ create_content (GrlMedia *content,
str = g_strdup (g_file_info_get_display_name (info));
/* Remove file extension */
- extension = g_strrstr (str, ".");
- if (extension) {
- *extension = '\0';
+ if (!GRL_IS_MEDIA_BOX (media)) {
+ extension = g_strrstr (str, ".");
+ if (extension) {
+ *extension = '\0';
+ }
}
grl_media_set_title (media, str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]