Opened 10 years ago
Closed 10 years ago
Last modified 10 years ago
#12179 closed Bug Report - General (fixed)
MythTV doesn't play file
Reported by: | JYA | Owned by: | JYA |
---|---|---|---|
Priority: | minor | Milestone: | 0.27.2 |
Component: | MythTV - Video Playback | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
File http://nrkbeta.no/2009/12/18/bergensbanen-eng/
doesn't play http://nrkbeta.no/torrent/divtorrents/Bergensbanen-minutt.for.minutt.1280x720p50.h264.NRK.mp4.torrent
The cause for the failure is related to how the RingBuffer::Read behaves.
It waits until there's exactly the number of bytes requested. Here, FFmpeg seek to the end of the file and request 5189405 but we are 4161536 from the end of the file only.
It times out after 16s waiting.
RingBuffer::Read should returns only what is currently available and not wait unnecessarily, letting FFmpeg deal with the retries.
this allows to play that particular file. However I'm not comfortable with simply returning a value > 0 if we have one.
We should still wait under special circumstances.
still looking at a more appropriate fix, that would less likely cause regression