[rhythmbox] generic-player: fix broken PSP detection code
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] generic-player: fix broken PSP detection code
- Date: Mon, 9 Nov 2009 11:42:01 +0000 (UTC)
commit f301b4deae961365eee1c791ea473f35c7af9681
Author: François Jaouen <francois jaouen laposte net>
Date: Mon Nov 9 21:41:17 2009 +1000
generic-player: fix broken PSP detection code
plugins/generic-player/rb-psp-source.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/generic-player/rb-psp-source.c b/plugins/generic-player/rb-psp-source.c
index 7c430dc..94a5e50 100644
--- a/plugins/generic-player/rb-psp-source.c
+++ b/plugins/generic-player/rb-psp-source.c
@@ -276,7 +276,7 @@ gboolean
rb_psp_is_mount_player (GMount *mount, MPIDDevice *device_info)
{
char *model;
- gboolean result;
+ gboolean result = FALSE;
g_object_get (device_info, "model", &model, NULL);
if (model != NULL && (g_str_equal (model, "PSP") || g_str_equal (model, "\"PSP\" MS"))) {
@@ -284,6 +284,6 @@ rb_psp_is_mount_player (GMount *mount, MPIDDevice *device_info)
}
g_free (model);
- return FALSE;
+ return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]