From 8a7eda03396799bdf2253f866e5f89c2a1e6a8bf Mon Sep 17 00:00:00 2001 From: jcsjcs Date: Sat, 23 Sep 2006 12:28:23 +0000 Subject: * src/itdb.h: explain 'checked' field in Itdb_Track declaration * src/itdb_playlist.c (itdb_spl_update): in SPLs with 'match checked tracks only" set, all unchecked tracks were matched. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1318 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- src/itdb.h | 4 ++-- src/itdb_playlist.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/itdb.h b/src/itdb.h index b81dacf..d51fac0 100644 --- a/src/itdb.h +++ b/src/itdb.h @@ -1,4 +1,4 @@ -/* Time-stamp: <2006-09-22 00:04:45 jcs> +/* Time-stamp: <2006-09-23 21:25:40 jcs> | | Copyright (C) 2002-2005 Jorg Schuler | Part of the gtkpod project. @@ -686,7 +686,7 @@ struct _Itdb_Track guint8 compilation; guint32 starttime; guint32 stoptime; - guint8 checked; + guint8 checked; /* 0x0: checkmark on track is set 0x1: not set */ guint64 dbid; /* unique database ID */ guint32 drm_userid; /* Apple Store/Audible User ID (for DRM'ed files only, set to 0 otherwise). */ diff --git a/src/itdb_playlist.c b/src/itdb_playlist.c index fcd099f..b6c5d9a 100644 --- a/src/itdb_playlist.c +++ b/src/itdb_playlist.c @@ -1,4 +1,4 @@ -/* Time-stamp: <2006-05-30 00:29:18 jcs> +/* Time-stamp: <2006-09-23 21:25:39 jcs> | | Copyright (C) 2002-2005 Jorg Schuler | Part of the gtkpod project. @@ -643,7 +643,7 @@ void itdb_spl_update (Itdb_Playlist *spl) g_return_if_fail (t); /* skip non-checked songs if we have to do so (this takes care of *all* the match_checked functionality) */ - if (spl->splpref.matchcheckedonly && (t->checked == 0)) + if (spl->splpref.matchcheckedonly && (t->checked != 0)) continue; /* first, match the rules */ if (spl->splpref.checkrules) -- cgit