Opened 17 years ago
Closed 16 years ago
#858 closed defect (fixed)
tv_usec >= 1000000 is illegal (on NetBSD at least)
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | streaming |
Version: | HEAD | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
The code in stream/udp.c and stream/librtsp/rtsp_rtp.c calls select() with tv.tv_usec set to 1000000 (to get a 1-second timeout); it should just set tv_sec to 1 instead.
This code breaks on NetBSD -- itimerfix() (which is ultimately called by select()) rejects such illegal value. See http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/kern_time.c and http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=35444
Attachments (1)
Change History (6)
by , 17 years ago
comment:1 by , 17 years ago
comment:3 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Only to stream/udp.c, but not to stream/librtsp/rtsp_rtp.c
comment:4 by , 16 years ago
Just a friendly reminder -- the fix is still not completely committed...
Note:
See TracTickets
for help on using tickets.
proposed fix