gerbera: fix compilation with newer npupnp

Macro got removed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-07-13 21:31:58 -07:00
parent 59c99a6637
commit d61b41b30a
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
2 changed files with 12 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=gerbera
PKG_VERSION:=1.5.0
PKG_RELEASE:=8
PKG_RELEASE:=9
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/gerbera/gerbera/tar.gz/v$(PKG_VERSION)?

View File

@ -0,0 +1,11 @@
--- a/src/upnp_cds.cc
+++ b/src/upnp_cds.cc
@@ -83,7 +83,7 @@ void ContentDirectoryService::doBrowse(const std::unique_ptr<ActionRequest>& req
if (BrowseFlag == "BrowseDirectChildren")
flag |= BROWSE_DIRECT_CHILDREN;
else if (BrowseFlag != "BrowseMetadata")
- throw UpnpException(UPNP_SOAP_E_INVALID_ARGS,
+ throw UpnpException(UPNP_E_INVALID_ARGUMENT,
"invalid browse flag: " + BrowseFlag);
auto parent = storage->loadObject(objectID);