explicitly mute audio before exit; from Jacob Meuser <jakemsr@jakemsr.com>

This commit is contained in:
naddy 2005-04-11 21:56:48 +00:00
parent 6dead20155
commit df8a7aee2d
4 changed files with 36 additions and 2 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.31 2005/03/09 05:27:05 pvalchev Exp $
# $OpenBSD: Makefile,v 1.32 2005/04/11 21:56:48 naddy Exp $
ONLY_FOR_ARCHS= i386 macppc amd64
COMMENT= "Display and capture for Brooktree-based cards"
DISTNAME= fxtv-1.03
PKGNAME= ${DISTNAME}p0
CATEGORIES= graphics
HOMEPAGE= http://people.freebsd.org/~rhh/fxtv/

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-actions_c,v 1.2 2002/02/02 00:52:18 naddy Exp $
$OpenBSD: patch-actions_c,v 1.3 2005/04/11 21:56:48 naddy Exp $
--- actions.c.orig Mon Feb 12 15:26:23 2001
+++ actions.c Wed Aug 15 13:46:30 2001
@@ -748,11 +748,14 @@ static void TVActionToggleZoomAction(
@ -17,3 +17,12 @@ $OpenBSD: patch-actions_c,v 1.2 2002/02/02 00:52:18 naddy Exp $
}
@@ -1263,6 +1266,8 @@ static void TVActionQuitAction(
fprintf( stderr,
"TVActionQuitAction: Unexpected argument ignored.\n" );
}
+
+ TVAUDIOSetMuteState( True );
exit(0);
}

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-tv_c,v 1.3 2005/04/11 21:56:48 naddy Exp $
--- 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);
}

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-tvmenu_c,v 1.1 2005/04/11 21:56:48 naddy Exp $
--- 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);
}