aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-10 18:02:44 +0200
committerMax Kellermann <max@duempel.org>2013-09-04 18:14:22 +0200
commit29030b54c98b0aee65fbc10ebf7ba36bed98c02c (patch)
tree79766830b55ebca38ddbce84d8d548227eedb69e /src/SongUpdate.cxx
parentc9fcc7f14860777458153eb2d13c773ccfa1daa2 (diff)
downloadmpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.gz
mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.xz
mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.zip
util/Error: new error passing library
Replaces GLib's GError.
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r--src/SongUpdate.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx
index b0d60b85a..d6f60c5cb 100644
--- a/src/SongUpdate.cxx
+++ b/src/SongUpdate.cxx
@@ -20,6 +20,7 @@
#include "config.h" /* must be first for large file support */
#include "Song.hxx"
#include "util/UriUtil.hxx"
+#include "util/Error.hxx"
#include "Directory.hxx"
#include "Mapper.hxx"
#include "fs/Path.hxx"
@@ -127,9 +128,10 @@ Song::UpdateFile()
/* open the input_stream (if not already
open) */
if (is == NULL) {
+ Error error;
is = input_stream_open(path_fs.c_str(),
mutex, cond,
- NULL);
+ error);
}
/* now try the stream_tag() method */
@@ -143,7 +145,8 @@ Song::UpdateFile()
delete tag;
tag = nullptr;
- input_stream_lock_seek(is, 0, SEEK_SET, NULL);
+ Error error;
+ input_stream_lock_seek(is, 0, SEEK_SET, error);
}
}