db/proxy: make the base class of LibmpdclientError public

If the base class is not accessible, the "catching" the base class
won't work.  This caused the fatal error:

 terminate called after throwing an instance of 'LibmpdclientError'
This commit is contained in:
Max Kellermann 2017-01-23 18:28:40 +01:00
parent 5e93cfdd9e
commit c6f89c42b2
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
ver 0.20.3 (not yet released)
* protocol
- "playlistadd" creates new playlist if it does not exist, as documented
* database
- proxy: fix error "terminate called after throwing ..."
* replay gain: don't reset ReplayGain levels when unpausing playback
* silence surround channels when converting from stereo
* use shortcuts such as "dsd64" in log messages

View File

@ -46,7 +46,7 @@
#include <string>
#include <list>
class LibmpdclientError final : std::runtime_error {
class LibmpdclientError final : public std::runtime_error {
enum mpd_error code;
public: