[mythtv] no more live tv

David Engel dlengel at attbi.com
Wed Apr 30 17:04:20 EDT 2003


On Tue, Apr 29, 2003 at 11:24:00PM -0500, David Engel wrote:
> Please note that watching recorded programs, even when they are still
> being recorded, has been working fine with artsd running.  It is only
> live TV with arts running that has the problem.  I suspect a
> difference in how mythtv is opening the sound device for watching live
> TV versus for recorded programs that is at fault.
> 
> I'll look for the difference tomorrow unless you come up with the
> answer before then.

Here is the patch which fixes it for me.

David
-- 
David Engel
dlengel at attbi.com

Index: mainserver.cpp
===================================================================
RCS file: /var/lib/cvs/MC/programs/mythbackend/mainserver.cpp,v
retrieving revision 1.63
diff -u -r1.63 mainserver.cpp
--- mainserver.cpp	30 Apr 2003 19:20:59 -0000	1.63
+++ mainserver.cpp	30 Apr 2003 21:01:38 -0000
@@ -404,7 +404,7 @@
 
             if (audiodevice.right(4) == audiooutputdevice.right(4)) //they match
             {
-                int dsp_fd = open(audiodevice, O_RDWR);
+                int dsp_fd = open(audiodevice, O_WRONLY);
                 if (dsp_fd != -1)
                 {
                     dsp_status = ioctl(dsp_fd, SNDCTL_DSP_GETCAPS,


More information about the mythtv-dev mailing list