]> git.vomp.tv Git - vompserver.git/commitdiff
Patch from Dave Pickles for VDR 1.3 tv/radio channel detection
authorChris Tallon <chris@vomp.tv>
Sun, 31 Jul 2005 16:46:26 +0000 (16:46 +0000)
committerChris Tallon <chris@vomp.tv>
Sun, 31 Jul 2005 16:46:26 +0000 (16:46 +0000)
mvpclient.c

index f5b36fd6ab325817b84fa0e0590bf43b198159b6..a678a6b0e080bebe2f0598dbe75cd789cd772168 100644 (file)
@@ -360,17 +360,26 @@ void MVPClient::processGetChannelsList(unsigned char* data, int length)
 
   for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel))
   {
-    if (!channel->GroupSep())
+#if VDRVERSNUM < 10300
+    if (!channel->GroupSep() && !channel->Ca())
+#else
+    if (!channel->GroupSep() && !channel->Ca(0))
+#endif
     {
       printf("name: '%s'\n", channel->Name());
 
+      if (channel->Vpid()) type = 1;
+#if VDRVERSNUM < 10300
+      else type = 2;
+#else
+      else if (channel->Apid(0)) type = 2;
+      else continue;
+#endif
+
       if (count > 49000) break;
       *(unsigned long*)&sendBuffer[count] = htonl(channel->Number());
       count += 4;
 
-      if (channel->Vpid()) type = 1;
-      else type = 2;
-
       *(unsigned long*)&sendBuffer[count] = htonl(type);
       count += 4;