Kodi Community Forum
TvHeadend Up / Down button not working? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: Tvheadend (https://forum.kodi.tv/forumdisplay.php?fid=168)
+---- Thread: TvHeadend Up / Down button not working? (/showthread.php?tid=93806)



TvHeadend Up / Down button not working? - kubax - 2011-02-10

Hi,

i'm interested in using TvHeadend, all working, except the problem, that the Up / Downn buttons (Channel + / -) are not working.. All i get is a "Channel noch Available" message.

Tried it within videos (add source htsp:xxx.xxx.xxx.xxx) and there the channel + / - buttons are working.

Any idea?

Xbmc: latest Trunk
TvHeadend: latest stable & latest Trunk tested.

Kub

Edit:
I think this could be problem related... but i'm not sure...
Code:
DVB-S", network: "ASTRA 1", mux: "ASTRA 1: 12,187,500 kHz Horizontal (No satconf)", provider: "RTL World", service: "RTL  Television", quality: 100
Feb 10 17:56:37 xbmc tvheadend[1284]: TS: ST STV0299 DVB-S/ASTRA 1: 12,187,500 kHz Horizontal (No satconf)/RTL  Television: Transport error indicator
Feb 10 17:56:37 xbmc tvheadend[1284]: TS: ST STV0299 DVB-S/ASTRA 1: 12,187,500 kHz Horizontal (No satconf)/RTL  Television: MPEG2VIDEO @ #163: Continuity counter error
Feb 10 17:56:39 xbmc tvheadend[1284]: htsp: 127.0.0.1 [ XBMC Media Center ]: Disconnected
Feb 10 17:56:39 xbmc tvheadend[1284]: subscription: "127.0.0.1 [ XBMC Media Center ]" unsubscribing from "RTL  Television"
Feb 10 17:56:39 xbmc tvheadend[1284]: htsp: Got connection from 127.0.0.1
Feb 10 17:56:39 xbmc tvheadend[1284]: htsp: 127.0.0.1: Welcomed client software: XBMC Media Center
Feb 10 17:56:39 xbmc tvheadend[1284]: subscription: "127.0.0.1 [ XBMC Media Center ]" subscribing on "RTL  Television", weight: 150, adapter: "ST STV0299 DVB-S", network: "ASTRA 1", mux: "ASTRA 1: 12,187,500 kHz Horizontal (No satconf)", provider: "RTL World", service: "RTL  Television", quality: 100
Feb 10 17:56:39 xbmc tvheadend[1284]: TS: ST STV0299 DVB-S/ASTRA 1: 12,187,500 kHz Horizontal (No satconf)/RTL  Television: MPEG2VIDEO @ #163: Continuity counter error, 6 duplicate log lines suppressed



- opdenkamp - 2011-02-11

please post a full xbmc.log and say where you got the source (of xbmc) and what revision you're using.


- perry99 - 2011-02-11

kubax Wrote:Hi,

i'm interested in using TvHeadend, all working, except the problem, that the Up / Downn buttons (Channel + / -) are not working.. All i get is a "Channel noch Available" message.

With vdr the same trouble with latest xbmc builds (github) from 05-02-2011 till now.
The number keys also don't work...

Greetz,

Perry


- kubax - 2011-02-11

Git Revision is: 2e3f21cd319bf42aeb95 (i think -.- used first part of ".git/refs/heads/master"

Repository is: git://github.com/opdenkamp/xbmc.git

and my xbmc.log is here: http://pastebin.com/ArqdEWzp


- opdenkamp - 2011-02-12

this branch is under development. some things will work, some things won't. use the dharma branch to get the most stable version around atm.


- kubax - 2011-02-12

so now i'm at revision "3d4ac629b8824c59ffd4" from "remotes/origin/Dharma" and the problem stays...

any other ideas?


- opdenkamp - 2011-02-12

could you post a log when you press page up or page down when using that version


- kubax - 2011-02-12

i'll post it later.

i figured out that i missed the --prefix option in configure, and xbmc got installed, but started the wrong binary..

so i'll have to reconfigure and rebuild the wohle thing..

but my girlfriend wants to look "Deutschland sucht den Superstar" (-.-) and i havt to wait untill it's over, to test it ^^

Will report back, if it's fixed with the real stable version ^^

thanks in advance...


- kubax - 2011-02-13

Ok.. this is strange.

I#ve tried it with XBMC 10.0 r35647+10 and newest TVHead also with V2.12 from the official site...

but when i go into "Live TV" i only get a message that no PVR client could be connected..

here a log of my xbmc...

http://pastebin.com/Ww3UkuCv


Zapfix - tux@dbox - 2011-02-15

Hi,

Here i have made a diff which is fixing the zapping issue!

Code:
diff --git a/xbmc/pvr/PVRManager.cpp b/xbmc/pvr/PVRManager.cpp
index c552e91..53bb5cf 100644
--- a/xbmc/pvr/PVRManager.cpp
+++ b/xbmc/pvr/PVRManager.cpp
@@ -1698,7 +1698,7 @@ bool CPVRManager::PerformChannelSwitch(const CPVRChannel *channel, bool bPreview
{
   CSingleLock lock(m_critSection);

-  if (!channel || channel->StreamURL().IsEmpty() || !m_clients[channel->ClientID()]->SwitchChannel(*channel))
+  if (!channel  || !m_clients[channel->ClientID()]->SwitchChannel(*channel))
   {
     CLog::Log(LOGERROR, "PVRManager - %s - failed to switch to channel '%s'",
         __FUNCTION__, channel ? channel->ChannelName().c_str() : "NULL");
diff --git a/xbmc/pvr/channels/PVRChannelGroup.cpp b/xbmc/pvr/channels/PVRChannelGroup.cpp
index 310ef2d..140913a 100644
--- a/xbmc/pvr/channels/PVRChannelGroup.cpp
+++ b/xbmc/pvr/channels/PVRChannelGroup.cpp
@@ -252,7 +252,7 @@ const CPVRChannel *CPVRChannelGroup::GetByChannelUp(const CPVRChannel *channel)
   if (iGetChannel > (int) size())
     iGetChannel = 1;

-  return GetByChannelNumber(iGetChannel - 1);
+  return GetByChannelNumber(iGetChannel);
}

const CPVRChannel *CPVRChannelGroup::GetByChannelDown(const CPVRChannel *channel) const
@@ -261,7 +261,7 @@ const CPVRChannel *CPVRChannelGroup::GetByChannelDown(const CPVRChannel *channel
   if (iGetChannel <= 0)
     iGetChannel = size();

-  return GetByChannelNumber(iGetChannel - 1);
+  return GetByChannelNumber(iGetChannel);
}

const CPVRChannel *CPVRChannelGroup::GetByIndex(unsigned int iIndex) const



- kubax - 2011-02-15

Thanks, i'll test it tomorrow... hope it works Smile


- kubax - 2011-02-16

Ok, tested and working Smile

Big thanks for the patch!