openbsd-ports/graphics/fxtv/patches/patch-batch_mode_c
naddy 87674e8f6a Complete overhaul of this port.
Submitted by Wilbern Cobb <vedge@csoft.org>.
2002-02-02 00:52:18 +00:00

25 lines
821 B
Plaintext

$OpenBSD: patch-batch_mode_c,v 1.1 2002/02/02 00:52:18 naddy Exp $
--- batch_mode.c.orig Sat Oct 23 10:50:35 1999
+++ batch_mode.c Wed Aug 15 13:46:30 2001
@@ -187,16 +187,18 @@ static void DoStreamVideo( TV_BATCH_PARM
}
/* Prepare the audio output filedesc */
- if ( parm->audio_target )
+ if ( parm->audio_target ) {
if ( audio2stdout )
aud_fd = 1;
- else
+ else {
if ( (aud_fd = open( parm->audio_target, O_CREAT|O_WRONLY|O_TRUNC,
0666 )) < 0 ) {
fprintf( stderr, "Failed to open output raw audio file: %s\n",
parm->audio_target );
exit(1);
}
+ }
+ }
/* Read header */
if ( !TVRAWVIDEOHeaderRead( rf, &img, &snd, &eof ) ) {