The current MythTV CVS with XvMC VLD decoding crashes when changing
a channel.
This is due to to the test to see if a valid XvMC port is available
in the static function VideoOutputXv::GetBestSupportedCodec() on lines
820->838. This fails on a channel change as the latest XvMC code
does not close down the XvMC port and so no ports are available for the
test.
I'm not sure where is functionality should be put
(VideoOutputXv::InitXvMc() ?) so I have put a "#ifdef" around this
code.
A patch to fix this is enclosed, but as stated, the code really
needs a better change.

I think I may nearly be there with XvMC VLD decoding ...


Terry -- Dr Terry Barnaby BEAM Ltd Phone: +44 1454 324512 Northavon Business Center, Dean Rd Fax: +44 1454 313172 Yate, Bristol, BS37 5NH, UK Email: [EMAIL PROTECTED] Web: www.beam.ltd.uk BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software "Tandems are twice the fun !"
Index: libs/libmythtv/videoout_xv.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/videoout_xv.cpp,v
retrieving revision 1.137
diff -u -r1.137 videoout_xv.cpp
--- libs/libmythtv/videoout_xv.cpp	4 May 2005 06:15:55 -0000	1.137
+++ libs/libmythtv/videoout_xv.cpp	4 May 2005 08:12:51 -0000
@@ -817,6 +817,7 @@
     }
 
     bool ok = true;
+#ifdef ZAP
     if (ret>kCodec_NORMAL_END)
     {
         Window root;
@@ -836,6 +837,7 @@
             X11S(XvUngrabPort(disp, port, CurrentTime));
         }
     }
+#endif
     X11S(XCloseDisplay(disp));
 
     if (!ok)
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to