summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-06-14 21:23:25 +0000
committerteuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-06-14 21:23:25 +0000
commitf97b005ce178965100a681b34dba70a0f720055e (patch)
tree930c4a46f17f4089d89ee0b2d47d7943ce157bf5
parent53718445da3843d7db22fd3029c87e7637696c9d (diff)
downloadlibgpod-f97b005ce178965100a681b34dba70a0f720055e.tar.gz
libgpod-f97b005ce178965100a681b34dba70a0f720055e.tar.xz
libgpod-f97b005ce178965100a681b34dba70a0f720055e.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