[vlc-devel] [PATCH] mms/tcp: hanging or unexpected seeking after the end of stream

bl4 bl4 at playker.info
Sat May 24 22:47:49 CEST 2008


This patch fixes issues with ending MMS/TCP playback: hanging, insisting 
on reading more data from the server or unexpected seeking to the middle 
of the file. It's very annoying when there are more items on the playlist.

I tested it on http://music.yahoo.com/launchcast (Yahoo Launchcast) and 
http://www.bbc.co.uk/radio (BBC World News Bulletin). Here's some of the 
vlc output for Launchcast (with my comments):

[00000369] access_mms access warning: end of media stream
[00000369] access_mms access error: no data received
[00000369] access_mms access warning: cannot fill buffer
[00000369] access_mms access warning: cannot receive header (1/10)
[00000369] access_mms access error: no data received
[00000369] access_mms access warning: cannot fill buffer
[00000369] access_mms access warning: cannot receive header (2/10)
# tries 10 times, each try takes some time
[00000369] access_mms access error: cannot receive media data (aborting)
[00000371] asf demux error: cannot skip data, EOF ?
# finally it ends

BBC World News:

[00000368] access_mms access warning: end of media stream
[00000366] main input warning: clock gap, unexpected stream discontinuity
[00000366] main input warning: feeding synchro with a new reference 
point trying to recover from clock gap
# a short break
[00000401] main audio output warning: computed PTS is out of range 
(3705883), clearing out
[00000401] main audio output warning: output PTS is out of range 
(3709479), clearing out
# continues playing from somewhere in the middle

After applying the patch, in both cases vlc properly ends playback and 
proceeds to next item on the playlist. Output is reduced to:

[00000368] access_mms access warning: end of media stream
[00000371] asf demux warning: cannot peek while getting new packet, EOF ?

-- 
bl4

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mms-tcp-hanging-or-unexpected-seeking-after-the-end.patch
Type: text/x-patch
Size: 2102 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080524/cb805c85/attachment.bin>


More information about the vlc-devel mailing list