summaryrefslogtreecommitdiff
path: root/lib/dvb
diff options
context:
space:
mode:
authorhschang <chang@dev3>2014-11-06 02:54:31 (GMT)
committerhschang <chang@dev3>2014-11-07 01:44:52 (GMT)
commitfe619dbed1c9bf14a0d442cc16d7e968769bbcc0 (patch)
tree7ef9ab48694dc549bd37f7ad6a9f0b5d67ef1108 /lib/dvb
parente7cebc68bef044b6ac699ac9b2dc93a65a5332a6 (diff)
Update httpstream
- added chunked transfer support. - connect to TS stream in seperate thread. - add basic http authentication support. - add redirect and playlist support.
Diffstat (limited to 'lib/dvb')
-rwxr-xr-xlib/dvb/dvb.cpp4
1 files changed, 2 insertions, 2 deletions
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<iTsSource> &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<iTsSource> &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);