1.1 --- a/src/gdrom/gdimage.c Sat Oct 06 09:03:24 2007 +0000
1.2 +++ b/src/gdrom/gdimage.c Sat Oct 27 05:44:54 2007 +0000
1.5 - * $Id: gdimage.c,v 1.2 2007-10-06 08:58:00 nkeynes Exp $
1.6 + * $Id: gdimage.c,v 1.3 2007-10-27 05:44:54 nkeynes Exp $
1.8 * GD-Rom image-file common functions.
1.11 disc->close = gdrom_image_destroy;
1.14 -gdrom_disc_t gdrom_image_new( FILE *f )
1.15 +gdrom_disc_t gdrom_image_new( const gchar *filename, FILE *f )
1.17 gdrom_image_t image = (gdrom_image_t)calloc(sizeof(struct gdrom_image), 1);
1.18 if( image == NULL ) {
1.21 image->disc_type = IDE_DISC_CDROM;
1.24 gdrom_disc_t disc = (gdrom_disc_t)image;
1.25 gdrom_image_init(disc);
1.26 + if( filename == NULL ) {
1.27 + disc->name = NULL;
1.29 + disc->name = g_strdup(filename);
1.39 + if( disc->name != NULL ) {
1.40 + g_free( disc->name );
1.41 + disc->name = NULL;