gerbera: fix compilation with newer npupnp
Macro got removed. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
59c99a6637
commit
d61b41b30a
|
@ -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)?
|
||||
|
|
|
@ -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);
|
Loading…
Reference in New Issue