Search
lxdream.org :: lxdream/src/gdrom/gdimage.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdimage.c
changeset 468:3a49695e081a
prev464:8e099fad42a6
next480:d28c2992f5ee
author nkeynes
date Sun Oct 28 07:23:46 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix CDI with multiple tracks/session
Fix file being closed too early
file annotate diff log raw
1.1 --- a/src/gdrom/gdimage.c Sat Oct 27 05:44:54 2007 +0000
1.2 +++ b/src/gdrom/gdimage.c Sun Oct 28 07:23:46 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gdimage.c,v 1.3 2007-10-27 05:44:54 nkeynes Exp $
1.6 + * $Id: gdimage.c,v 1.4 2007-10-28 07:23:46 nkeynes Exp $
1.7 *
1.8 * GD-Rom image-file common functions.
1.9 *
1.10 @@ -80,6 +80,19 @@
1.11 free( disc );
1.12 }
1.13
1.14 +void gdrom_image_destroy_no_close( gdrom_disc_t disc )
1.15 +{
1.16 + gdrom_image_t img = (gdrom_image_t)disc;
1.17 + if( img->file != NULL ) {
1.18 + img->file = NULL;
1.19 + }
1.20 + if( disc->name != NULL ) {
1.21 + g_free( disc->name );
1.22 + disc->name = NULL;
1.23 + }
1.24 + free( disc );
1.25 +}
1.26 +
1.27 static int gdrom_image_get_track_by_lba( gdrom_image_t image, uint32_t lba )
1.28 {
1.29 int i;
.