Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inputstream.ffmpegdirect/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="inputstream.ffmpegdirect"
version="22.2.4"
version="22.2.5"
name="Inputstream FFmpeg Direct"
provider-name="Ross Nicholson">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
4 changes: 4 additions & 0 deletions inputstream.ffmpegdirect/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v22.2.5
- Fix catchup stream backward skip on EOF near live edge
- Fix 6s close delay on timeshift HLS streams

v22.2.4
- Release

Expand Down
5 changes: 3 additions & 2 deletions src/stream/FFmpegCatchupStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,11 @@ DEMUX_PACKET* FFmpegCatchupStream::DemuxRead()
{
if (!m_lastPacketWasAvoidedEOF)
{
Log(LOGLEVEL_INFO, "%s - EOF detected on terminating catchup stream, starting continuing stream at offset: %lld, ending offset approx %lld", __FUNCTION__, m_previousLiveBufferOffset, static_cast<long long>(std::time(nullptr) - m_catchupBufferStartTime));
long long currentDemuxSecs = static_cast<long long>(m_currentDemuxTime) / 1000;
Log(LOGLEVEL_INFO, "%s - EOF detected on terminating catchup stream, starting continuing stream at offset: %lld, ending offset approx %lld", __FUNCTION__, currentDemuxSecs, static_cast<long long>(std::time(nullptr) - m_catchupBufferStartTime));

m_seekCorrectsEOF = true;
DemuxSeekTime(m_previousLiveBufferOffset * 1000);
DemuxSeekTime(m_currentDemuxTime);
m_seekCorrectsEOF = false;
}
m_lastPacketWasAvoidedEOF = true;
Expand Down
4 changes: 2 additions & 2 deletions src/stream/FFmpegCatchupStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class FFmpegCatchupStream : public FFmpegStream

bool m_isOpeningStream;
double m_seekOffset;
double m_pauseStartTime;
double m_currentDemuxTime;
double m_pauseStartTime = 0;
double m_currentDemuxTime = 0;

long long m_previousLiveBufferOffset = 0;
bool m_lastSeekWasLive = false;
Expand Down
Loading