Skip to content

Commit

Permalink
Increase mpd_buffer data size to 16384 to deal with large comments in…
Browse files Browse the repository at this point in the history
… tracks.
  • Loading branch information
katoemba committed May 2, 2020
1 parent 2cb0312 commit 4b1d078
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ let package = Package(
cSettings: [
.define("DEFAULT_HOST", to: "\"localhost\""),
.define("DEFAULT_PORT", to: "6600"),
.define("ENABLE_TCP", to: "1")
.define("ENABLE_TCP", to: "1"),
.define("MPD_BUFFER_SIZE", to: "16384"),
]
)
]
Expand Down
2 changes: 1 addition & 1 deletion Sources/libmpdclient/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct mpd_buffer {
unsigned read;

/** the actual buffer */
unsigned char data[4096];
unsigned char data[MPD_BUFFER_SIZE];
};

/**
Expand Down

0 comments on commit 4b1d078

Please sign in to comment.