[mythtv-firehose] mythtv branch master updated by jyavenard. v0.28-pre-1624-g13845af

Git Repo Owner noreply at mythtv.org
Wed Jun 18 04:59:18 UTC 2014


The branch, master has been updated on the
mythtv repository by gitolite user jyavenard.
       via  13845afd923f2706134424b2e458d02c89ab5d83 (commit)
      from  065885b857371d683c6f6b1df10fa8fefcca9ef7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 13845afd923f2706134424b2e458d02c89ab5d83
Author:    Jean-Yves Avenard <jyavenard at mythtv.org> at Wed, 18 Jun 2014 14:57:41 +1000
Committer: Jean-Yves Avenard <jyavenard at mythtv.org> at Wed, 18 Jun 2014 14:57:41 +1000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=13845afd923f2706134424b2e458d02c89ab5d83

Allow partial reads
Traditionally we've always had RingBuffer::Read() return the number of bytes requested unless we are at the end of the file. But this blocks libav which expects the read to complete fairly quickly even if it is a blocking read. Instead we should block for only a short time waiting for more data and then return what data we do have as long as we have at least 1 byte of data.

Based on a patch by DanielK
Fixes #12179
Ref #10658



-----------------------------------------------------------------------

Summary of changes:
 mythtv/libs/libmythtv/avfringbuffer.cpp  |   14 ++-
 mythtv/libs/libmythtv/fileringbuffer.cpp |   12 ++-
 mythtv/libs/libmythtv/ringbuffer.cpp     |  194 +++++++++++++++++-------------
 mythtv/libs/libmythtv/ringbuffer.h       |    4 +-
 4 files changed, 132 insertions(+), 92 deletions(-)

-- 



More information about the mythtv-firehose mailing list