[mythtv] [PATCH] Hardware Decoder Prompting

Brett Lucey brett at happykoala.com
Sat Oct 18 04:06:43 EDT 2003


I have been going back and forth between using a monitor/tv-out and using a television with PVR-350 out.  Compiling over and over again had just gotten plain annoying, so I made a few minor changes to allow this as a setting in the TV Playback setup.

I believe Isaac said he had intended to do this but never got around to it anyways.

This is the first time I've ever tried to submit a patch, so feel free to flame if I make a fool of myself or if I do this complete wrong :)

-Brett


Index: libs/libmythtv/ivtvdecoder.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/ivtvdecoder.cpp,v
retrieving revision 1.12
diff -r1.12 ivtvdecoder.cpp
70,71c70,71
<     // remove to enable..
<     return false;
---
>     if (gContext->GetNumSetting("HardwareDecoder", 0) == 0)
>       return false;

Index: programs/mythfrontend/globalsettings.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/globalsettings.cpp,v
retrieving revision 1.102
diff -r1.102 globalsettings.cpp
137a138,148
> class HardwareDecoder: public CheckBoxSetting, public GlobalSetting {
> public:
>     HardwareDecoder():
>         GlobalSetting("HardwareDecoder") {
>         setLabel(QObject::tr("Use PVR350 Hardware Decoder"));
>         setValue(false);
>         setHelpText(QObject::tr("This enables the use of the hardware "
>                     "decoder, if you have a Hauppauge PVR350."));
>     };
> };
>
1237a1249
>     general->addChild(new HardwareDecoder());
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20031018/c2edabe3/attachment-0001.html


More information about the mythtv-dev mailing list