aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive/bz2_archive_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-16 16:40:22 +0100
committerMax Kellermann <max@duempel.org>2009-12-16 17:10:19 +0100
commit71fee0974402702c16b40dc6791196c46fb038bb (patch)
tree4e6270b610d56092970ea31193d09adf59490ae6 /src/archive/bz2_archive_plugin.c
parentf9af1a445efedc049a6a608a76088578e3cca4b3 (diff)
downloadmpd-71fee0974402702c16b40dc6791196c46fb038bb.tar.gz
mpd-71fee0974402702c16b40dc6791196c46fb038bb.tar.xz
mpd-71fee0974402702c16b40dc6791196c46fb038bb.zip
archive_plugin: use GError in the open() method
Diffstat (limited to 'src/archive/bz2_archive_plugin.c')
-rw-r--r--src/archive/bz2_archive_plugin.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/archive/bz2_archive_plugin.c b/src/archive/bz2_archive_plugin.c
index e8e5c556c..b3a9027af 100644
--- a/src/archive/bz2_archive_plugin.c
+++ b/src/archive/bz2_archive_plugin.c
@@ -98,7 +98,7 @@ bz2_destroy(struct bz2_archive_file *data)
/* archive open && listing routine */
static struct archive_file *
-bz2_open(const char *pathname)
+bz2_open(const char *pathname, GError **error_r)
{
struct bz2_archive_file *context;
int len;
@@ -107,8 +107,7 @@ bz2_open(const char *pathname)
archive_file_init(&context->base, &bz2_archive_plugin);
//open archive
- if (!input_stream_open(&context->istream, pathname, NULL)) {
- g_warning("failed to open an bzip2 archive %s\n",pathname);
+ if (!input_stream_open(&context->istream, pathname, error_r)) {
g_free(context);
return NULL;
}