summaryrefslogtreecommitdiffstats
path: root/src/db-artwork-parser.c
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2005-12-06 13:22:35 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2005-12-06 13:22:35 +0000
commitebd24fd449ff31d19d10824b58ef3305ec863f5d (patch)
tree6638c5e468159bc2db0ef56ed16c780f55d95a4f /src/db-artwork-parser.c
parent6ef63990060d869c403cf83530d66f692ab7d5c7 (diff)
downloadlibgpod-ebd24fd449ff31d19d10824b58ef3305ec863f5d.tar.gz
libgpod-ebd24fd449ff31d19d10824b58ef3305ec863f5d.tar.xz
libgpod-ebd24fd449ff31d19d10824b58ef3305ec863f5d.zip
* src/itdb_itunesdb.c: change g_assert to g_return_if_fail (don't
terminate the application just because the iTunesDB was manipulated). * src/db-artwork-parser.c: change g_assert to g_return_if_fail (don't terminate the application just because the ArtworkDB was manipulated). * src/itdb_artwork.c: change g_assert to g_return_if_fail (don't terminate the application just because the ithmb file was manipulated). There's a number of g_asserts left in db-parse-context.c which don't catch programming errors but input errors. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1188 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-artwork-parser.c')
-rw-r--r--src/db-artwork-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db-artwork-parser.c b/src/db-artwork-parser.c
index 5a9254e..8731050 100644
--- a/src/db-artwork-parser.c
+++ b/src/db-artwork-parser.c
@@ -401,7 +401,7 @@ parse_mhfd (DBParseContext *ctx, Itdb_iTunesDB *db, GError **error)
}
/* Sanity check */
- g_assert (GINT_FROM_LE (mhfd->total_len) == ctx->total_len);
+ g_return_val_if_fail (GINT_FROM_LE (mhfd->total_len) == ctx->total_len, -1);
dump_mhfd (mhfd);
cur_pos = ctx->header_len;