Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8e07ea7a
Commit
8e07ea7a
authored
May 30, 2020
by
Shen-Ta Hsieh
Committed by
Max Kellermann
May 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/db: fitting libmpdclient interface
parent
d751df0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ProxyDatabasePlugin.cxx
src/db/plugins/ProxyDatabasePlugin.cxx
+7
-3
No files found.
src/db/plugins/ProxyDatabasePlugin.cxx
View file @
8e07ea7a
...
@@ -493,9 +493,13 @@ ProxyDatabase::Connect()
...
@@ -493,9 +493,13 @@ ProxyDatabase::Connect()
try
{
try
{
CheckError
(
connection
);
CheckError
(
connection
);
if
(
mpd_connection_cmp_server_version
(
connection
,
0
,
19
,
0
)
<
0
)
if
(
mpd_connection_cmp_server_version
(
connection
,
0
,
19
,
0
)
<
0
)
{
throw
FormatRuntimeError
(
"Connect to MPD %s, but this plugin requires at least version 0.19"
,
const
unsigned
*
version
=
mpd_connection_get_server_version
(
connection
));
mpd_connection_get_server_version
(
connection
);
throw
FormatRuntimeError
(
"Connect to MPD %u.%u.%u, but this "
"plugin requires at least version 0.19"
,
version
[
0
],
version
[
1
],
version
[
2
]);
}
if
(
!
password
.
empty
()
&&
if
(
!
password
.
empty
()
&&
!
mpd_run_password
(
connection
,
password
.
c_str
()))
!
mpd_run_password
(
connection
,
password
.
c_str
()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment