Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/audio/play fix bug introduced in 1.12:



details:   https://anonhg.NetBSD.org/src/rev/cbb183d4eb07
branches:  trunk
changeset: 477590:cbb183d4eb07
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Oct 23 04:20:14 1999 +0000

description:
fix bug introduced in 1.12:
only return a header length of 0 if we are using -f (force), not
in the case when we know how long the header is.  this stops from
playing the audio header.

diffstat:

 usr.bin/audio/play/play.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r aad06fda60f0 -r cbb183d4eb07 usr.bin/audio/play/play.c
--- a/usr.bin/audio/play/play.c Sat Oct 23 04:02:09 1999 +0000
+++ b/usr.bin/audio/play/play.c Sat Oct 23 04:20:14 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: play.c,v 1.13 1999/09/27 05:00:21 mrg Exp $    */
+/*     $NetBSD: play.c,v 1.14 1999/10/23 04:20:14 mrg Exp $    */
 
 /*
  * Copyright (c) 1999 Matthew R. Green
@@ -383,13 +383,14 @@
                        info.play.encoding = encoding;
                if (precision)
                        info.play.precision = precision;
+               hdr_len = 0;
        }
        info.mode = AUMODE_PLAY_ALL;
 
        if (ioctl(fd, AUDIO_SETINFO, &info) < 0)
                err(1, "failed to set audio info");
        
-       return (0);
+       return (hdr_len);
 }
 
 void



Home | Main Index | Thread Index | Old Index