diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c index 2360adf..20615c5 100644 --- a/src/ithumb-writer.c +++ b/src/ithumb-writer.c @@ -1619,6 +1619,22 @@ itdb_write_ithumb_files (Itdb_DB *db) } itdb_thumb_free (photo->thumbnail); photo->thumbnail = (Itdb_Thumb *)thumb_ipod; + } // teuf add code here. + else{ + Itdb_Thumb_Ipod_Item *thumb_ipodItem; + GList *itw; + + for (itw = writers; itw != NULL; itw = itw->next) { + iThumbWriter *writer = itw->data; + Itdb_Thumb *thumb; + thumb = photo->thumbnail; + + thumb_ipodItem = itdb_thumb_ipod_get_item_by_type (thumb,writer->img_info); + if (thumb_ipodItem != NULL) + { + writer->cur_offset = thumb_ipodItem->offset+ thumb_ipodItem->size; + } + } } } break;