Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 1999 16:44:51 -0400
From:      Randall Hopper <aa8vb@ipass.net>
To:        thomas@hentschel.net
Cc:        multimedia@freebsd.org
Subject:   Re: Fxtv 1.00 - up for grabs
Message-ID:  <19990908164451.A54555@ipass.net>
In-Reply-To: <199909080341.UAA27666@gate.hentschel.net>; from thomas@hentschel.net on Tue, Sep 07, 1999 at 08:47:08PM -0700
References:  <19990907060034.A8985@ipass.net> <199909080341.UAA27666@gate.hentschel.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--gBBFr7Ir9EOA20Yy
Content-Type: text/plain; charset=us-ascii

thomas@hentschel.net:
 |Ha, I found the problem : Whenever you give the file to be saved an
 |absolute path the console say's 
 |"Failed to open for write: .//hd3/thomas/test.sh"
 |                           ^^
 |and fxtv returns with an error. Works well with relative paths.
 |I just gotta run and pick someone up at the airport, I'll look into
 |this a bit more later.

Ahh, yes.  Somebody mailed me about encoding not working unless "." was in
the $PATH, and I added this at the last minute.  A more intelligent fix
would prepend ./ only if no path (relative or absolute) was specified.
Sorry about that.  The attached patch should do the trick.

Thanks also for the 2.2.8 patches BTW.

 |BTW, the frame rate conversion is GREAT !! Now I get non-choppy mpegs
 |out of this lowly P133 :)

Hey, glad to hear it!

Randall

--gBBFr7Ir9EOA20Yy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="fxtv-1.00.mpegbasepath.patch"

--- t/fxtv-1.00/vidsav_dlg.c	Mon Sep  6 10:39:18 1999
+++ vidsav_dlg.c	Wed Sep  8 16:39:04 1999
@@ -70,7 +70,7 @@
 /*      ******************** Local defines                ************** */
 
 #define AV_RAWNAME_FMT      "%s.AVraw"
-#define SCRIPT_FNAME_FMT    "./%s.sh"
+#define SCRIPT_FNAME_FMT    "%s%s.sh"
 
 #define OPTIMIZE_NUM_FRAMES 200
 
@@ -801,9 +801,12 @@
     char        *str;
     struct stat  stat;
     TV_INT32     i;
+    TV_BOOL      has_path;
 
     /*  Open output script file  */
-    sprintf( p->script_fname, SCRIPT_FNAME_FMT, p->fname_base );
+    has_path = strchr( "p->fname_base", '/' ) != NULL;
+    sprintf( p->script_fname, SCRIPT_FNAME_FMT, 
+             (has_path ? "./" : ""), p->fname_base );
 
     if ( (fp = fopen( p->script_fname, "wt" )) == NULL ) {
         fprintf( stderr, "Failed to open for write: %s\n", p->script_fname );

--gBBFr7Ir9EOA20Yy--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990908164451.A54555>