4
« on: September 14, 2010, 13:28:26 »
I have made a couple of patches against the latest dongle which will probably only interest me, as I'm pretty convinced I'm the only US person using vomp now.
Patch 1, doesn't display the channel if it has "qam" in the channel name.. (I use qam for my ATSC clear qam channels - this could be a user specified string).
--- client_0.3.1-3-Yaris/vdr.cc 2010-09-14 07:21:11.000000000 -0500
+++ client_0.3.1-3-Yaris.patched/vdr.cc 2010-09-14 07:08:50.000000000 -0500
@@ -734,14 +734,15 @@ ChannelList* VDR::getChannelsList(ULONG
chan->name = vresp->extractString();
chan->vstreamtype = vresp->extractULONG();
- if (chan->type == type && (chan->vstreamtype!=0x1b || h264support))
+ if (chan->type == type && (chan->vstreamtype!=0x1b || h264support) && (strstr(chan->name, "qam") == 0 ))
{
chanList->push_back(chan);
- logger->log("VDR", Log::DEBUG, "Have added a channel to list. %lu %lu %s", chan->number, chan->type, chan->name);
+ logger->log("VDR", Log::DEBUG, "Have added a channel to list. %lu %lu %s, %lu", chan->number, chan->type, chan->name, strstr(chan->name, "qam") );
if (chan->number > maxChannelNumber) maxChannelNumber = chan->number;
}
else
{
+ logger->log("VDR", Log::DEBUG, "Thrown away channel. %lu %lu %s %lu", chan->number, chan->type, chan->name, strstr(chan->name, "qam"));
delete chan;
}
}
Patch 2 fixes an error where the info summary text is drawn off screen for an NTSC screen size. Again, this needs to be a bit more intelligent as it will now wreck PAL output. However, my C programming skills are not up to it.
--- client_0.3.1-3-Yaris/vvideolivetv.cc 2009-09-20 10:06:11.000000000 -0500
+++ client_0.3.1-3-Yaris.patched/vvideolivetv.cc 2010-09-14 07:08:49.000000000 -0500
@@ -192,20 +192,20 @@ VVideoLiveTV::VVideoLiveTV(ChannelList*
sl.setBackgroundColour(osdBack);
sl.setPosition(70, 36);
- sl.setSize(500, 58);
+ sl.setSize(400, 58);
sl.setNoLoop();
osd.add(&sl);
// Summary Box
summary.setBackgroundColour(osdBack);
- summary.setPosition(0, video->getScreenHeight() - 560);
- summary.setSize(video->getScreenWidth(), 410);
+ summary.setPosition(0, video->getScreenHeight() - 468);
+ summary.setSize(video->getScreenWidth(), 320);
summary.setVisible(false);
add(&summary);
textSummary.setBackgroundColour(osdBack);
textSummary.setPosition(40, 30);
- textSummary.setSize(video->getScreenWidth() - 80, 390);
+ textSummary.setSize(video->getScreenWidth() - 80, 290);
textSummary.setParaMode(true);
summary.add(&textSummary);
If anyone needs it, I have a VMware ubuntu 6.10 image which I'm using for a development environment.
Rob