summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2008-06-14 21:23:25 +0000
committerChristophe Fergeau <teuf@gnome.org>2008-06-14 21:23:25 +0000
commit125c36317676830388fdc6333ec9b8124f948847 (patch)
tree930c4a46f17f4089d89ee0b2d47d7943ce157bf5
parent2cb87552c063d3f69502872be00eebce35513868 (diff)
downloadlibgpod-125c36317676830388fdc6333ec9b8124f948847.tar.gz
libgpod-125c36317676830388fdc6333ec9b8124f948847.tar.xz
libgpod-125c36317676830388fdc6333ec9b8124f948847.zip
Remove buggy function to test if an ipod supports video
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2015 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r--ChangeLog6
-rw-r--r--src/itdb_track.c20
2 files changed, 7 insertions, 19 deletions
diff --git a/ChangeLog b/ChangeLog
index da73eec..1315374 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-14 Christophe Fergeau <teuf@gnome.org>
+
+ * src/itdb_track.c: remove bogus function to check if the ipod
+ supports video: it didn't take into account the new ipods released
+ after the 1st ipod video
+
2008-06-09 Christophe Fergeau <teuf@gnome.org>
* src/itdb_device.h:
diff --git a/src/itdb_track.c b/src/itdb_track.c
index b966a8b..ff8ff4f 100644
--- a/src/itdb_track.c
+++ b/src/itdb_track.c
@@ -33,24 +33,6 @@
#include "itdb_thumb.h"
#include <string.h>
-static gboolean is_video_ipod (Itdb_Device *device)
-{
- const Itdb_IpodInfo *info;
-
- g_return_val_if_fail (device, FALSE);
-
- info = itdb_device_get_ipod_info (device);
-
- if (!info) return FALSE;
-
- if ((info->ipod_model == ITDB_IPOD_MODEL_VIDEO_WHITE) ||
- (info->ipod_model == ITDB_IPOD_MODEL_VIDEO_BLACK))
- return TRUE;
- else
- return FALSE;
-}
-
-
/**
* itdb_track_new:
*
@@ -161,7 +143,7 @@ static void itdb_track_set_defaults (Itdb_Track *tr)
tr->unk144 = 0x0000; /* default value */
}
}
- if (is_video_ipod (tr->itdb->device))
+ if (itdb_device_supports_video (tr->itdb->device))
{
/* The unk208 field seems to denote whether the file is a
video or not. It seems that it must be set to 0x00000002