aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-04-08 15:28:20 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-04-08 15:28:20 +0000
commitee5fce8acad063a63f8b97e7eb2ad3aa19359325 (patch)
treea82a3a58c8adfbd957e9f11383097a2fe7b7780a /lib
parentca60dbd724252e6ac5c3ffe8aaef07b08c0dc0bb (diff)
downloadenigma2-ee5fce8acad063a63f8b97e7eb2ad3aa19359325.tar.gz
enigma2-ee5fce8acad063a63f8b97e7eb2ad3aa19359325.zip
use setTarget instead of ugly 's'
Diffstat (limited to 'lib')
-rw-r--r--lib/service/iservice.h2
-rw-r--r--lib/service/servicedvb.cpp13
-rw-r--r--lib/service/servicedvb.h2
3 files changed, 10 insertions, 7 deletions
diff --git a/lib/service/iservice.h b/lib/service/iservice.h
index 822910f9..7ea8c17b 100644
--- a/lib/service/iservice.h
+++ b/lib/service/iservice.h
@@ -437,6 +437,8 @@ public:
virtual RESULT connectEvent(const Slot2<void,iPlayableService*,int> &event, ePtr<eConnection> &connection)=0;
virtual RESULT start()=0;
virtual RESULT stop()=0;
+ /* might have to be changed... */
+ virtual RESULT setTarget(int target)=0;
virtual SWIG_VOID(RESULT) seek(ePtr<iSeekableService> &SWIG_OUTPUT)=0;
virtual SWIG_VOID(RESULT) pause(ePtr<iPauseableService> &SWIG_OUTPUT)=0;
virtual SWIG_VOID(RESULT) info(ePtr<iServiceInformation> &SWIG_OUTPUT)=0;
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp
index 2494efc5..6f52c129 100644
--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -569,13 +569,6 @@ eDVBServicePlay::eDVBServicePlay(const eServiceReference &ref, eDVBService *serv
m_reference(ref), m_dvb_service(service), m_is_paused(0)
{
m_is_primary = 1;
- /* HACK!!! */
- if (m_reference.path == "s")
- {
- m_reference.path = "";
- m_is_primary = 0;
- }
-
m_is_pvr = !m_reference.path.empty();
m_timeshift_enabled = m_timeshift_active = 0;
@@ -735,6 +728,12 @@ RESULT eDVBServicePlay::stop()
return 0;
}
+RESULT eDVBServicePlay::setTarget(int target)
+{
+ m_is_primary = !target;
+ return 0;
+}
+
RESULT eDVBServicePlay::connectEvent(const Slot2<void,iPlayableService*,int> &event, ePtr<eConnection> &connection)
{
connection = new eConnection((iPlayableService*)this, m_event.connect(event));
diff --git a/lib/service/servicedvb.h b/lib/service/servicedvb.h
index 42896bfd..d79e6202 100644
--- a/lib/service/servicedvb.h
+++ b/lib/service/servicedvb.h
@@ -69,6 +69,8 @@ public:
RESULT connectEvent(const Slot2<void,iPlayableService*,int> &event, ePtr<eConnection> &connection);
RESULT start();
RESULT stop();
+ RESULT setTarget(int target);
+
RESULT seek(ePtr<iSeekableService> &ptr);
RESULT pause(ePtr<iPauseableService> &ptr);
RESULT info(ePtr<iServiceInformation> &ptr);