Opened 13 years ago

Closed 13 years ago

#2057 closed patch (fixed)

[Patch] improves unreliable mythweb stream seeking

Reported by: adrian.wilkins@… Owned by: xris
Priority: minor Milestone: unknown
Component: mythweb Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The streaming perl handler for requests to the streaming module uses the standard buffered seek() and read() functions.

Requests take dramatically longer to seek the later they are in the stream ; after a certain point, seeking breaks and the player (mplayer on Win32) returns end-of-file.

Changing the seek() and read() calls to the unbuffered sysseek() and sysread() calls appears to improve this (can seek to end of film and seeks take user-constant time as position in stream increases).

Attachments (1)

change_to_sysseek.diff (677 bytes) - added by adrian.wilkins@… 13 years ago.
Patches handler.pl to use system IO calls

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by adrian.wilkins@…

Attachment: change_to_sysseek.diff added

Patches handler.pl to use system IO calls

comment:1 Changed 13 years ago by xris

Resolution: fixed
Status: newclosed

(In [10687]) apply 'sys' patch to close #2057

Note: See TracTickets for help on using tickets.