Skip to content

Commit

Permalink
PVR API 5.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ksooo committed Jun 20, 2018
1 parent bcd8289 commit cc1dc5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pvr.demo/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.demo"
version="3.6.0"
version="3.6.1"
name="PVR Demo Client"
provider-name="Pulse-Eight Ltd., Team Kodi">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
6 changes: 4 additions & 2 deletions src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ PVR_ERROR GetChannelStreamProperties(const PVR_CHANNEL* channel, PVR_NAMED_VALUE
if (!channel || !properties || !iPropertiesCount)
return PVR_ERROR_SERVER_ERROR;

if (*iPropertiesCount < 1)
if (*iPropertiesCount < 2)
return PVR_ERROR_INVALID_PARAMETERS;

if (m_data)
Expand All @@ -248,7 +248,9 @@ PVR_ERROR GetChannelStreamProperties(const PVR_CHANNEL* channel, PVR_NAMED_VALUE

strncpy(properties[0].strName, PVR_STREAM_PROPERTY_STREAMURL, sizeof(properties[0].strName) - 1);
strncpy(properties[0].strValue, addonChannel.strStreamURL.c_str(), sizeof(properties[0].strValue) - 1);
*iPropertiesCount = 1;
strncpy(properties[1].strName, PVR_STREAM_PROPERTY_ISREALTIMESTREAM, sizeof(properties[1].strName) - 1);
strncpy(properties[1].strValue, "true", sizeof(properties[1].strValue) - 1);
*iPropertiesCount = 2;
return PVR_ERROR_NO_ERROR;
}

Expand Down

0 comments on commit cc1dc5d

Please sign in to comment.