openbsd-ports/mbone/sdr/patches/patch-sdr_src_plugins_tcl
wilfried bb1af71e4d * respect CC/CFLAGS
* split patches into separate files
2001-03-17 17:33:18 +00:00

25 lines
961 B
Plaintext

$OpenBSD: patch-sdr_src_plugins_tcl,v 1.1 2001/03/17 17:33:19 wilfried Exp $
--- sdr/src/plugins.tcl.orig Thu Jul 15 15:55:13 1999
+++ sdr/src/plugins.tcl Fri Mar 16 20:55:41 2001
@@ -637,12 +637,19 @@ proc start_media_tool {aid mnum proto fm
set tmp enabled
# catch {puts "$media.$proto.$fmt.[lindex $subrule 0]"}
catch {set tmp $tool_state($media.$proto.$fmt.[lindex $subrule 0])}
- if {$tmp=="enabled"} {
+ if {$tmp=="enabled" && $subrule != {}} {
lappend rulelist $subrule
}
}
}
if {[llength $rulelist]==0} {
+ # Special case for handling SDP/SAP directory sessions:
+ if {$media=="directory" && $proto=="SAP" && $fmt=="SDP"} {
+ return [launch_directory $ldata($aid,$mnum,addr) \
+ $ldata($aid,$mnum,port) \
+ $ldata($aid,ttl) \
+ $ldata($aid,session)]
+ }
set toollist {}
foreach subrule $rule {
lappend toollist [lindex $subrule 0]