commit e3746cfa81d5ff6091ddfc3e9f47fc6635610c05
Author: Adam Broschinski <[email protected]>
Date:   Wed Apr 14 23:14:35 2010 -0400

    Fail when write_lphs or write_rths fail
    
    This commit makes write_hphs and write_hths return with failure
    when write_lphs or write_rths returns false instead of ignoring
    the event.

 src/itdb_itunesdb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 6ba72a5..39f8f00 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -6286,7 +6286,7 @@ static gboolean write_hths (FExport *fexp)
 
                /* Add this tracks offset then add the track */
                put32lint_seek(cts, cts->pos, track_seek);
-               write_rths(cts, track);
+               g_return_val_if_fail (write_rths(cts, track), FALSE);
 
                /* Go to the offset for the next track */
                track_seek += 4;
@@ -6389,7 +6389,7 @@ static gboolean write_hphs (FExport *fexp)
                
                /* Write this headers offset */
                put32lint_seek (cts, cts->pos, playlist_seek);
-               write_lphs (cts, pl);
+               g_return_val_if_fail (write_lphs (cts, pl),FALSE);
 
                /* Move to the field for the next header */
                playlist_seek += 4;

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to