X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/02da1f586ef7945fef385e6d4743ef53441bc2fa..cd621fe499141885e5a0d8b4e42a0f8a7f41a9ac:/lib/service/servicemp3.cpp diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index a6d19287..d1c9001d 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -9,7 +9,7 @@ // eServiceFactoryMP3 -eServiceFactoryMP3::eServiceFactoryMP3(): ref(0) +eServiceFactoryMP3::eServiceFactoryMP3() { ePtr sc; @@ -58,7 +58,7 @@ void eServiceMP3::test_end() stop(); } -eServiceMP3::eServiceMP3(const char *filename): ref(0), filename(filename), test(eApp) +eServiceMP3::eServiceMP3(const char *filename): filename(filename), test(eApp) { m_state = stIdle; eDebug("SERVICEMP3 construct!"); @@ -75,7 +75,7 @@ DEFINE_REF(eServiceMP3); RESULT eServiceMP3::connectEvent(const Slot2 &event, ePtr &connection) { - connection = new eConnection(this, m_event.connect(event)); + connection = new eConnection((iPlayableService*)this, m_event.connect(event)); return 0; } @@ -113,7 +113,7 @@ RESULT eServiceMP3::unpause() { printf("mp3 unpauses!\n"); return 0; } RESULT eServiceMP3::getIServiceInformation(ePtr&i) { i = this; return 0; } -RESULT eServiceMP3::getName(eString &name) +RESULT eServiceMP3::getName(std::string &name) { name = "MP3 File: " + filename; return 0;