Filename assignment
Status: Abandoned
Brought to you by:
finris
I changed my own version to add a -o flag that takes a
filename and overrides whatever filename asfrecorder
makes. It writes to that instead. This is helpful for
writing scripts to use asfrecorder (command-line
version)...if you don't know what filename it's going
to write to, it makes scripts hard to write. :)
Is there any way to get this functionality into the
main release, though? I can send a diff, I think. The
version of asfrecorder.c was already "patched" in the
FreeBSD port I have, so it may be hard to do this.
Logged In: YES
user_id=246319
FreeBSD PORT?
Send me a version with your patch
n diff
My modded version of source
Logged In: YES
user_id=75389
Here is the diff:
431a432
> char *myFileName = NULL;
2614a2616,2623
> case 'o':
> if (argc > i+1)
> myFileName = argv[++i];
> else
> {
> gui_seterror("insufficient args\n");
err=1;
> }
> break;
2882a2892,2894
>
> if (myFileName != NULL)
> strcpy(filename, myFileName);
As you can see, it's not a fully-realized change - i.e., I
didn't add this to the "usage" printout, and maybe there are
deeper ramifications on the GUI aspect.
Cheers,
Sean