2013-06-26, 13:59
(2013-06-26, 11:36)Uukrul Wrote: I also had the same problem. Here is the fix:
Code:addons/pvr.dvbviewer/src/DvbData.cpp | 4 ++--
addons/pvr.dvbviewer/src/DvbData.h | 2 +-
addons/pvr.dvbviewer/src/client.cpp | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/addons/pvr.dvbviewer/src/DvbData.cpp b/addons/pvr.dvbviewer/src/DvbData.cpp
index f67df23..a1d2fce 100644
--- a/addons/pvr.dvbviewer/src/DvbData.cpp
+++ b/addons/pvr.dvbviewer/src/DvbData.cpp
@@ -513,7 +513,7 @@ bool Dvb::OpenLiveStream(const PVR_CHANNEL& channelinfo)
if (m_tsBuffer)
SAFE_DELETE(m_tsBuffer);
XBMC->Log(LOG_INFO, "Timeshifting starts; url=%s",
- GetLiveStreamURL(channelinfo).c_str());
+ GetLiveStreamURL(channelinfo));
m_tsBuffer = new TimeshiftBuffer(GetLiveStreamURL(channelinfo),
g_strTimeshiftBufferPath);
return m_tsBuffer->IsValid();
@@ -554,7 +554,7 @@ long long Dvb::LengthLiveStream(void)
return m_tsBuffer->Length();
}
-CStdString Dvb::GetLiveStreamURL(const PVR_CHANNEL& channelinfo)
+const char * Dvb::GetLiveStreamURL(const PVR_CHANNEL& channelinfo)
{
SwitchChannel(channelinfo);
return m_channels[channelinfo.iUniqueId - 1].strStreamURL;
diff --git a/addons/pvr.dvbviewer/src/DvbData.h b/addons/pvr.dvbviewer/src/DvbData.h
index 517e219..70adb1b 100644
--- a/addons/pvr.dvbviewer/src/DvbData.h
+++ b/addons/pvr.dvbviewer/src/DvbData.h
@@ -248,7 +248,7 @@ public:
long long SeekLiveStream(long long iPosition, int iWhence /* = SEEK_SET */);
long long PositionLiveStream(void);
long long LengthLiveStream(void);
- CStdString GetLiveStreamURL(const PVR_CHANNEL& channelinfo);
+ const char * GetLiveStreamURL(const PVR_CHANNEL& channelinfo);
protected:
virtual void *Process(void);
diff --git a/addons/pvr.dvbviewer/src/client.cpp b/addons/pvr.dvbviewer/src/client.cpp
index 3d0d1e7..6f8ee52 100644
--- a/addons/pvr.dvbviewer/src/client.cpp
+++ b/addons/pvr.dvbviewer/src/client.cpp
@@ -494,7 +494,7 @@ const char *GetLiveStreamURL(const PVR_CHANNEL &channel)
if (!DvbData || !DvbData->IsConnected())
return "";
- return DvbData->GetLiveStreamURL(channel).c_str();
+ return DvbData->GetLiveStreamURL(channel);
}
bool CanPauseStream(void)
Thanks Uukrul, but I'm not developer
Where can I found this solution in compilation file?
The lastest night builds dont work for me in TV online (not view channels)
and neither found information about XBMC+PVR Dvbviewer, seem all is stopped
Thanks in advance