Bug 20956 - Two better patches for the mplex port
Summary: Two better patches for the mplex port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-08-31 07:20 UTC by Andre Albsmeier
Modified: 2000-09-05 02:36 UTC (History)
0 users

See Also:


Attachments
file.diff (2.90 KB, patch)
2000-08-31 07:20 UTC, Andre Albsmeier
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Albsmeier 2000-08-31 07:20:00 UTC
By default, mplex needs parameter input from the user. This behaviour
has been changed by patch-ac and patch-ad to use defaults. Probably this
has been done to make it possible to use mplex in batch files without
the need for user intervention, e.g. fxtv.

However, in some cases it may be desired to change these parameters. The
two patches below replace patch-ac and patch-ad. They add an -i option
which will enable the user inputs again. If -i is not specified, the
behaviour remains the same so the change should be 100% compatible to 
existing software which rely on mplex as it is now.

Fix: patch-ac only adds the -DTIMER compiletime options which enables
some timing measurements:

--------------------------- snip ----------------------------

--------------------------- snap ----------------------------


patch-ad now implements the -i option mentioned above:

--------------------------- snip ----------------------------



--------------------------- snap ------------------------------zLrcgp8iRytb4yuO2z3dNVFRbe5qvmUALBOHcD9waiqhMv8w
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.ORI	Wed Aug 30 21:03:47 2000
+++ Makefile	Wed Aug 30 21:05:55 2000
@@ -24,6 +24,8 @@
 CC     ?=  cc
 RM     =  /bin/rm -f
 
+CFLAGS+= -DTIMER
+
 OBJS = main.o bitstrm.o buffer.o inits.o inptstrm.o interact.o multplex.o systems.o timecode.o
 
 SRCS = main.c bitstrm.c buffer.c inits.c inptstrm.c interact.c multplex.c systems.c timecode.c
How-To-Repeat: 
Use mplex and try to change parameters.
Comment 1 Steve Price freebsd_committer freebsd_triage 2000-09-05 02:34:45 UTC
State Changed
From-To: open->closed

Committed, thanks!