[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make graphics/fxtv explicitly mute on exit



fxtv currently relies on the fact that /dev/tuner0 will mute
audio on close(2).  however, this behaviour may change.

the following patches make fxtv explicitly mute the audio
before it exits.

MAINTAINER says, "Looks ok, but I can't test it as my tuner
does not have audio."

I have tested this with two different bktr(4) cards on
amd64 and i386.

-- 
<jakemsr_(_at_)_jakemsr_(_dot_)_com>

Index: graphics/fxtv/patches/patch-actions_c
===================================================================
RCS file: /cvs/ports/graphics/fxtv/patches/patch-actions_c,v
retrieving revision 1.2
diff -u -r1.2 patch-actions_c
--- graphics/fxtv/patches/patch-actions_c	2 Feb 2002 00:52:18 -0000	1.2
+++ graphics/fxtv/patches/patch-actions_c	7 Apr 2005 04:09:41 -0000
@@ -17,3 +17,12 @@
  }
  
  
+@@ -1263,6 +1266,8 @@ static void TVActionQuitAction(
+         fprintf( stderr, 
+               "TVActionQuitAction: Unexpected argument ignored.\n" );
+     }
++
++    TVAUDIOSetMuteState( True );
+ 
+     exit(0);
+ }
Index: graphics/fxtv/patches/patch-tv_c
===================================================================
RCS file: graphics/fxtv/patches/patch-tv_c
diff -N graphics/fxtv/patches/patch-tv_c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ graphics/fxtv/patches/patch-tv_c	7 Apr 2005 04:01:00 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+--- tv.c.orig	Wed Apr  6 20:55:45 2005
++++ tv.c	Wed Apr  6 20:56:30 2005
+@@ -126,6 +126,9 @@ static void TVWMDeleteWindow(
+ 
+     if ( TVSCREENVideoStarted() )
+         TVSCREENStopVideo( True );
++
++    TVAUDIOSetMuteState( True );
++
+     exit(0);
+ }
+ 
Index: graphics/fxtv/patches/patch-tvmenu_c
===================================================================
RCS file: graphics/fxtv/patches/patch-tvmenu_c
diff -N graphics/fxtv/patches/patch-tvmenu_c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ graphics/fxtv/patches/patch-tvmenu_c	7 Apr 2005 04:04:27 -0000
@@ -0,0 +1,11 @@
+$OpenBSD$
+--- tvmenu.c.orig	Wed Apr  6 21:03:29 2005
++++ tvmenu.c	Wed Apr  6 21:04:16 2005
+@@ -713,6 +713,7 @@ static void VidSavAsCB( Widget w, XtPoin
+ /*  QuitCB - Exit the app (invoking atexit behavior)  */
+ static void QuitCB( Widget w, XtPointer cl, XtPointer cb )
+ {
++    TVAUDIOSetMuteState( True );
+     exit(0);
+ }
+ 



Visit your host, monkey.org