[mythtv-commits] Ticket #8847: Intermittent failure to play a video file in mythtv.
MythTV
mythtv at cvs.mythtv.org
Wed Sep 1 07:49:34 UTC 2010
#8847: Intermittent failure to play a video file in mythtv.
-----------------------------------------+----------------------------------
Reporter: James.Dutton@… | Owner: janne
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: Trunk Head
Severity: medium | Keywords:
Ticket locked: 0 |
-----------------------------------------+----------------------------------
In NuppleVideoPlayer.cpp, there is a line that contains
"player_ctx->buffer->Peek(testbuf, testreadsize);"
at about line 1196.
That function returns how many bytes were read.
In most cases the amount of bytes read will = testreadsize.
But, I have seen cases where the amount of bytes read is > 0 but less that
testreadsize.
myth then decides that it cannot read the file. I.e. Assumes is could not
read anything and exists.
This is wrong behaviour. The file is there, it is just not being sent fast
enough to mythfrontend.
I think a better approach would be to repeat the Peek call until the
returned value is a negative error value implying end of file or similar
and otherwise waiting for more bytes to arrive.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/8847>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list