[mythtv] Help getting decent page chooser for teletext.

Martin Moeller martin at martinm-76.dk
Sun Jul 27 01:18:50 EDT 2003


All right. I've done what I can, I need some help before the final patch
to the teletext subsystem is ready...

I now have a extremely bad implementation of reading from a file and
storing (in a roundabout way) in vbipagenr.

I am sure there are many people out there who knows a much better and
more elegant way to do this, and hopefully also how to modify it do work
like this:

* Check for $HOME/.mythtv/teletext in stead of /tmp/teletext.mythtv
* Convert the input to the right hexvalue, i.e the file contains 399 and
the vbipagenr ends up as 0x03990000. Right now I must calculate the
decimal value of 0x0399 and place that in /tmp/teletext.mythtv.
Horrible, but it beats recompiling all the time.

I hope one of you out there can spare a bit of time to 'do this right'
since I've spent roughly 3-4 hours doing it this badly :)

I have tried to make sure mythfrontend doesn't segfault on Live TV and
View Recording (it would, if /tmp/teletext.mythtv didn't exist). I
suppose I am missing some exception handling here as well...

If only C++ was PHP.. :)

If anyone out there prefers an extra field in the settings table or one
more column in channels then that's fine by me, if you can make it work
:) -- Similary, if one of you can make 'T' go through all possible pages
and toggle off after having tried them all, that would be just fine with
me too. I think I've just about reached my limit here with my current
knowledge of C++.

Who would have thought reading 3-4 characters from a file was so much
work.... There must be a better way.

/Martin.
-- 
Martin Moeller <martin at martinm-76.dk>



More information about the mythtv-dev mailing list