summaryrefslogtreecommitdiff
path: root/src/Demuxer.cpp
diff options
context:
space:
mode:
authoroskwon <kos@dev3>2014-06-18 08:17:14 (GMT)
committeroskwon <kos@dev3>2014-06-18 10:17:42 (GMT)
commit0d5d66cdee3921eba4c11859fb4edc296339e746 (patch)
tree46b377ceb7cb93a4b5a1a35d2bf2496e58435ef8 /src/Demuxer.cpp
parent48a6d1332dc7f6791854511133bac81161db9a4d (diff)
Add request type(/m3u) for Vu+PlayerHD (IOS).
Remove up.sh and add some scripts. Some sources refactoring.
Diffstat (limited to 'src/Demuxer.cpp')
-rw-r--r--src/Demuxer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Demuxer.cpp b/src/Demuxer.cpp
index a943bab..04cd35b 100644
--- a/src/Demuxer.cpp
+++ b/src/Demuxer.cpp
@@ -15,7 +15,7 @@
#include <linux/dvb/dmx.h>
#include <linux/dvb/version.h>
-#include "Utils.h"
+#include "Util.h"
#include "Logger.h"
#include "Demuxer.h"
@@ -149,11 +149,11 @@ bool Demuxer::parse_webif_response(std::string& response, std::vector<unsigned l
demux_id = atoi(line.substr(1,1).c_str());
std::vector<std::string> pidtokens;
- if (split(line.c_str() + 3, ',', pidtokens)) {
+ if (Util::split(line.c_str() + 3, ',', pidtokens)) {
for (int i = 0; i < pidtokens.size(); ++i) {
std::string pidstr, pidtype;
std::string toekn = pidtokens[i];
- if (!split_key_value(toekn, ":", pidstr, pidtype))
+ if (!Util::split_key_value(toekn, ":", pidstr, pidtype))
continue;
unsigned long pid = strtoul(pidstr.c_str(), 0, 0x10);
@@ -183,7 +183,7 @@ bool Demuxer::parse_webif_response(std::string& response, std::vector<unsigned l
}
//-------------------------------------------------------------------------------
-Demuxer::Demuxer(RequestHeader *header) throw(trap)
+Demuxer::Demuxer(HttpHeader *header) throw(trap)
{
demux_id = pat_pid = fd = sock = -1;
pmt_pid = audio_pid = video_pid = 0;
@@ -197,7 +197,7 @@ Demuxer::Demuxer(RequestHeader *header) throw(trap)
if (!parse_webif_response(webif_response, new_pids))
throw(trap("webif response parsing fail."));
- std::string demuxpath = "/dev/dvb/adapter0/demux" + ultostr(demux_id);
+ std::string demuxpath = "/dev/dvb/adapter0/demux" + Util::ultostr(demux_id);
if ((fd = open(demuxpath.c_str(), O_RDWR | O_NONBLOCK)) < 0) {
throw(trap(std::string("demux open fail : ") + demuxpath));
}