input/cdda: call input_cdda_close() with an input_stream pointer

Another build fix.
This commit is contained in:
Max Kellermann 2010-12-22 08:02:50 +01:00
parent be670bfd1f
commit 8db5f66498
1 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@ input_cdda_open(const char *uri, GError **error_r)
if (parse_cdda_uri(uri, &drive, &trackno) == -1) { if (parse_cdda_uri(uri, &drive, &trackno) == -1) {
g_set_error(error_r, cdda_quark(), 0, g_set_error(error_r, cdda_quark(), 0,
"Unable parse URI\n"); "Unable parse URI\n");
input_cdda_close(i); input_cdda_close(&i->base);
return NULL; return NULL;
} }
@ -124,7 +124,7 @@ input_cdda_open(const char *uri, GError **error_r)
if (device == NULL) { if (device == NULL) {
g_set_error(error_r, cdda_quark(), 0, g_set_error(error_r, cdda_quark(), 0,
"Unable find or access a CD-ROM drive with an audio CD in it."); "Unable find or access a CD-ROM drive with an audio CD in it.");
input_cdda_close(i); input_cdda_close(&i->base);
return NULL; return NULL;
} }
@ -137,7 +137,7 @@ input_cdda_open(const char *uri, GError **error_r)
if ( !i->drv ) { if ( !i->drv ) {
g_set_error(error_r, cdda_quark(), 0, g_set_error(error_r, cdda_quark(), 0,
"Unable to identify audio CD disc."); "Unable to identify audio CD disc.");
input_cdda_close(i); input_cdda_close(&i->base);
return NULL; return NULL;
} }
@ -145,7 +145,7 @@ input_cdda_open(const char *uri, GError **error_r)
if ( 0 != cdio_cddap_open(i->drv) ) { if ( 0 != cdio_cddap_open(i->drv) ) {
g_set_error(error_r, cdda_quark(), 0, "Unable to open disc."); g_set_error(error_r, cdda_quark(), 0, "Unable to open disc.");
input_cdda_close(i); input_cdda_close(&i->base);
return NULL; return NULL;
} }
@ -171,7 +171,7 @@ input_cdda_open(const char *uri, GError **error_r)
if (i->trackno == -1) { if (i->trackno == -1) {
g_set_error(error_r, cdda_quark(), 0, g_set_error(error_r, cdda_quark(), 0,
"Invalid track # in %s", uri); "Invalid track # in %s", uri);
input_cdda_close(i); input_cdda_close(&i->base);
return NULL; return NULL;
} }