X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Fdvb.cpp;h=e32e5f83de29d2ce616da6c099e678b63a91399b;hp=ee6825306e5f578ec33e378d09a5c4027f81cbbc;hb=fe619dbed1c9bf14a0d442cc16d7e968769bbcc0;hpb=e7cebc68bef044b6ac699ac9b2dc93a65a5332a6 diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp index ee68253..e32e5f8 100755 --- a/lib/dvb/dvb.cpp +++ b/lib/dvb/dvb.cpp @@ -1832,7 +1832,7 @@ RESULT eDVBChannel::playSource(ePtr &source, const char *streaminfo_f m_pvr_thread = 0; } - if (!source->valid()) + if (!source->valid() && !source->isStream()) { eDebug("PVR source is not valid!"); return -ENOENT; @@ -1875,7 +1875,7 @@ RESULT eDVBChannel::playSource(ePtr &source, const char *streaminfo_f m_pvr_thread = new eDVBChannelFilePush(); m_pvr_thread->enablePVRCommit(1); /* If the source specifies a length, it's a file. If not, it's a stream */ - m_pvr_thread->setStreamMode(source->length() <= 0); + m_pvr_thread->setStreamMode(source->isStream()); m_pvr_thread->setScatterGather(this); m_event(this, evtPreStart);