From f97b005ce178965100a681b34dba70a0f720055e Mon Sep 17 00:00:00 2001 From: teuf Date: Sat, 14 Jun 2008 21:23:25 +0000 Subject: 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 --- ChangeLog | 6 ++++++ src/itdb_track.c | 20 +------------------- 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 + + * 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 * 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 -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 -- cgit