Skip to content

Commit

Permalink
[Updated] Allow streams to be pausable and seekable
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarCC authored and Huevos committed Oct 2, 2024
1 parent 6544943 commit ef04c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/service/servicedvb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@ RESULT eDVBServicePlay::pause(ePtr<iPauseableService> &ptr)
/* note: we check for timeshift to be enabled,
not neccessary active. if you pause when timeshift
is not active, you should activate it when unpausing */
if ((!m_is_pvr) && (!m_timeshift_enabled))
if ((!m_is_pvr) && (!m_timeshift_enabled) && m_reference.path.empty())
{
ptr = nullptr;
return -1;
Expand Down Expand Up @@ -1617,7 +1617,7 @@ RESULT eDVBServicePlay::setFastForward_internal(int ratio, bool final_seek)

RESULT eDVBServicePlay::seek(ePtr<iSeekableService> &ptr)
{
if (m_is_pvr || m_timeshift_enabled)
if (m_is_pvr || m_timeshift_enabled || !m_reference.path.empty())
{
ptr = this;
return 0;
Expand Down

0 comments on commit ef04c89

Please sign in to comment.