Merge branch 'v0.20.x'

This commit is contained in:
Max Kellermann
2017-04-24 11:44:27 +02:00
8 changed files with 12 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ struct Directory {
Directory *const parent;
time_t mtime = 0;
unsigned inode = 0, device = 0;
uint64_t inode = 0, device = 0;
const std::string path;

View File

@@ -43,7 +43,8 @@ FillBuffer(DecoderClient &client, InputStream &is, B &buffer)
{
buffer.Shift();
auto w = buffer.Write();
assert(!w.IsEmpty());
if (w.IsEmpty())
return true;
size_t nbytes = decoder_read(client, is, w.data, w.size);
if (nbytes == 0 && is.LockIsEOF())

View File

@@ -287,8 +287,6 @@ roar_tag_convert(TagType type, bool *is_uuid)
case TAG_MUSICBRAINZ_ALBUMID:
case TAG_MUSICBRAINZ_ALBUMARTISTID:
case TAG_MUSICBRAINZ_TRACKID:
*is_uuid = true;
return "HASH";
case TAG_MUSICBRAINZ_RELEASETRACKID:
*is_uuid = true;
return "HASH";

View File

@@ -50,7 +50,7 @@ struct StorageFileInfo {
* Device id and inode number. 0 means unknown / not
* applicable.
*/
unsigned device, inode;
uint64_t device, inode;
StorageFileInfo() = default;

View File

@@ -45,7 +45,7 @@ public:
explicit ScopeExitGuard(F &&f):F(std::forward<F>(f)) {}
ScopeExitGuard(ScopeExitGuard &&src)
:F(std::move(src)) {
:F(std::move(src)), enabled(src.enabled) {
src.enabled = false;
}