2012-04-04, 17:14
Thanks for your work. I use the version from trans. But i habe problems with the webif in this version. i can't connect to it. What is wrong?
(2012-04-04, 17:14)sb206 Wrote: Thanks for your work. I use the version from trans. But i habe problems with the webif in this version. i can't connect to it. What is wrong?
while (j<10 || it == strIcon.end())
{
if (*it == ':')
j++;
it++;
}
(2012-04-05, 13:16)trans Wrote: current from git: https://github.com/jdembski/xbmc-addon-vuplus.git
current from git: https://github.com/opdenkamp/xbmc.git
compiled under windows
I have a fault with the run or debug. When run as a release crashes XBMC.
When debug is at this point in the code
Code:while (j<10 || it == strIcon.end())
{
if (*it == ':')
j++;
it++;
}
The following message
http://www.mediafire.com/?mbab1l51gbs7sts
diff --git a/src/vuplus/VuData.cpp b/src/vuplus/VuData.cpp
index 9418f75..50888de 100644
--- a/src/vuplus/VuData.cpp
+++ b/src/vuplus/VuData.cpp
@@ -613,7 +613,7 @@ bool Vu::LoadChannels(CStdString strServiceReference, CStdStr
newChannel.strChannelName = strTmp;
std::string strIcon;
- strIcon = newChannel.strServiceReference;
+ strIcon = newChannel.strServiceReference.c_str();
int j = 0;
std::string::iterator it = strIcon.begin();
(2012-04-05, 15:58)jdembski Wrote: Can you check whether this fixes it? Unfortunately I don't have a system to test changes properly - hopefully I can set up a system by the end of this week...
Code:diff --git a/src/vuplus/VuData.cpp b/src/vuplus/VuData.cpp
index 9418f75..50888de 100644
--- a/src/vuplus/VuData.cpp
+++ b/src/vuplus/VuData.cpp
@@ -613,7 +613,7 @@ bool Vu::LoadChannels(CStdString strServiceReference, CStdStr
newChannel.strChannelName = strTmp;
std::string strIcon;
- strIcon = newChannel.strServiceReference;
+ strIcon = newChannel.strServiceReference.c_str();
int j = 0;
std::string::iterator it = strIcon.begin();
it ""
j 10
strIcon "1:0:19:2B5C:3F3:1:C00000:0:0:0:"
this 0x0d051020 {m_bIsConnected=false m_strServerName="Vu" m_strURL="http://192.168.3.251:8088/" ...}
(2012-04-05, 16:38)trans Wrote: Unfortunately no, the error occurs exactly on it:
Code:it ""
j 10
strIcon "1:0:19:2B5C:3F3:1:C00000:0:0:0:"
this 0x0d051020 {m_bIsConnected=false m_strServerName="Vu" m_strURL="http://192.168.3.251:8088/" ...}
diff --git a/src/vuplus/VuData.cpp b/src/vuplus/VuData.cpp
index 9418f75..7d71684 100644
--- a/src/vuplus/VuData.cpp
+++ b/src/vuplus/VuData.cpp
@@ -613,12 +613,12 @@ bool Vu::LoadChannels(CStdString strServiceReference, CStdS
newChannel.strChannelName = strTmp;
std::string strIcon;
- strIcon = newChannel.strServiceReference;
+ strIcon = newChannel.strServiceReference.c_str();
int j = 0;
std::string::iterator it = strIcon.begin();
- while (j<10 || it == strIcon.end())
+ while (j<10 && it != strIcon.end())
{
if (*it == ':')
j++;
(2012-04-05, 17:27)jdembski Wrote: Please try this - I think this will fix it...stupid error...
Code:diff --git a/src/vuplus/VuData.cpp b/src/vuplus/VuData.cpp
index 9418f75..7d71684 100644
--- a/src/vuplus/VuData.cpp
+++ b/src/vuplus/VuData.cpp
@@ -613,12 +613,12 @@ bool Vu::LoadChannels(CStdString strServiceReference, CStdS
newChannel.strChannelName = strTmp;
std::string strIcon;
- strIcon = newChannel.strServiceReference;
+ strIcon = newChannel.strServiceReference.c_str();
int j = 0;
std::string::iterator it = strIcon.begin();
- while (j<10 || it == strIcon.end())
+ while (j<10 && it != strIcon.end())
{
if (*it == ':')
j++;
(2012-04-05, 17:39)trans Wrote:(2012-04-05, 17:27)jdembski Wrote: Please try this - I think this will fix it...stupid error...
Code:diff --git a/src/vuplus/VuData.cpp b/src/vuplus/VuData.cpp
index 9418f75..7d71684 100644
--- a/src/vuplus/VuData.cpp
+++ b/src/vuplus/VuData.cpp
@@ -613,12 +613,12 @@ bool Vu::LoadChannels(CStdString strServiceReference, CStdS
newChannel.strChannelName = strTmp;
std::string strIcon;
- strIcon = newChannel.strServiceReference;
+ strIcon = newChannel.strServiceReference.c_str();
int j = 0;
std::string::iterator it = strIcon.begin();
- while (j<10 || it == strIcon.end())
+ while (j<10 && it != strIcon.end())
{
if (*it == ':')
j++;
with the patch it works, thanks
(2012-04-05, 17:44)sb206 Wrote: Hello trans. Please could you post again a complete version. With your last version i have problems with the jsonrpc and other programms.
(2012-04-05, 17:45)jdembski Wrote: Thanks for your help testing it - are all picons showing up?