[mythtv] PATCH: set hardware mjpeg codec

Colin Panisset mythtv-dev@snowman.net
Mon, 23 Dec 2002 18:16:35 -0800


--------------Boundary-00=_NBQL5TUKOKGQXFNFFVTA
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

tv_rec.cpp has been missing the line to set the NuppelVideoRecorder codec=
 to=20
hardware-mjpeg for a while now, and I only just realised why I wasn't=20
getting the performance I expected from my new-old G200TV.

Attached is a patch that should fix it -- it's a one line change.

  -- C.
--------------Boundary-00=_NBQL5TUKOKGQXFNFFVTA
Content-Type: text/x-diff;
  charset="us-ascii";
  name="tv_rec.cpp.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="tv_rec.cpp.diff"

--- libs/libmythtv/tv_rec.cpp	Mon Dec 23 18:11:42 2002
+++ libs/libmythtv/tv_rec.cpp.orig	Mon Dec 23 18:11:18 2002
@@ -357,6 +357,7 @@
       nvr->SetRTJpegMotionLevels(profile.byName("rtjpegchromafilter")->getValue().toInt(),
                                  profile.byName("rtjpeglumafilter")->getValue().toInt());
     } else if (setting == "Hardware MJPEG") {
+      nvr->SetCodec("hardware-mjpeg");
       nvr->SetHMJPGQuality(profile.byName("hardwaremjpegquality")->getValue().toInt());
       nvr->SetHMJPGDecimation(profile.byName("hardwaremjpegdecimation")->getValue().toInt());
     } else {

--------------Boundary-00=_NBQL5TUKOKGQXFNFFVTA--