diff options
author | Max Kellermann <max@duempel.org> | 2010-12-22 08:02:50 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-12-22 09:43:27 +0100 |
commit | 8db5f66498dd6f512abf13268904bc6abe9fce67 (patch) | |
tree | b19707abd0734648ecbc9611065888868e5af273 /src/input/cdda_input_plugin.c | |
parent | be670bfd1f6ba20262f64fa67d198e6b51b9b51a (diff) | |
download | mpd-8db5f66498dd6f512abf13268904bc6abe9fce67.tar.gz mpd-8db5f66498dd6f512abf13268904bc6abe9fce67.tar.xz mpd-8db5f66498dd6f512abf13268904bc6abe9fce67.zip |
input/cdda: call input_cdda_close() with an input_stream pointer
Another build fix.
Diffstat (limited to '')
-rw-r--r-- | src/input/cdda_input_plugin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input/cdda_input_plugin.c b/src/input/cdda_input_plugin.c index 52de8adef..b2b86abc3 100644 --- a/src/input/cdda_input_plugin.c +++ b/src/input/cdda_input_plugin.c @@ -115,7 +115,7 @@ input_cdda_open(const char *uri, GError **error_r) if (parse_cdda_uri(uri, &drive, &trackno) == -1) { g_set_error(error_r, cdda_quark(), 0, "Unable parse URI\n"); - input_cdda_close(i); + input_cdda_close(&i->base); return NULL; } @@ -124,7 +124,7 @@ input_cdda_open(const char *uri, GError **error_r) if (device == NULL) { g_set_error(error_r, cdda_quark(), 0, "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; } @@ -137,7 +137,7 @@ input_cdda_open(const char *uri, GError **error_r) if ( !i->drv ) { g_set_error(error_r, cdda_quark(), 0, "Unable to identify audio CD disc."); - input_cdda_close(i); + input_cdda_close(&i->base); return NULL; } @@ -145,7 +145,7 @@ input_cdda_open(const char *uri, GError **error_r) if ( 0 != cdio_cddap_open(i->drv) ) { g_set_error(error_r, cdda_quark(), 0, "Unable to open disc."); - input_cdda_close(i); + input_cdda_close(&i->base); return NULL; } @@ -171,7 +171,7 @@ input_cdda_open(const char *uri, GError **error_r) if (i->trackno == -1) { g_set_error(error_r, cdda_quark(), 0, "Invalid track # in %s", uri); - input_cdda_close(i); + input_cdda_close(&i->base); return NULL; } |