Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[pvr.tvh] - fix timeshift (and other) problems? By increasing packet …
…buffer.

I (and others) had completely failed to notice that the default buffer size
for the SyncedBuffer object that pvr.{hts,tvh} was using is ridiculously small
and thus could result in lost data (worse there was no error output - doh).

I have increased to unlimited length, its implicitly bounded by other things
and there is little point bounding it. If it were to fill indefinitely then
something would have to be seriously wrong and the system would probably
eventually crash for other reasons!

This appears to fix timeshift issues, I wonder whether it will fix other things
as well!
  • Loading branch information
adamsutton committed Mar 3, 2014
1 parent 6948185 commit 93eeffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/pvr.tvh/src/HTSPDemuxer.cpp
Expand Up @@ -46,7 +46,7 @@ using namespace PLATFORM;

CHTSPDemuxer::CHTSPDemuxer ( CHTSPConnection &conn )
: m_conn(conn), m_opened(false), m_started(false), m_chnId(0), m_subId(0),
m_speed(1000)
m_speed(1000), m_pktBuffer((size_t)-1)
{
}

Expand Down

0 comments on commit 93eeffe

Please sign in to comment.