[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/phonon/xine
From: Matthias Kretz <kretz () kde ! org>
Date: 2007-12-06 15:15:58
Message-ID: 1196954158.520901.31790.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 745609 by mkretz:
hack a xine_stream_t property into Phonon::MediaObject for eean so that he can break \
the internals ad libitum ;-)
M +1 -0 mediaobject.h
M +2 -0 xinestream.cpp
M +2 -0 xinestream.h
--- trunk/KDE/kdebase/runtime/phonon/xine/mediaobject.h #745608:745609
@@ -139,6 +139,7 @@
void handleAvailableTitlesChanged(int);
void handleFinished();
void handleHasVideoChanged(bool);
+ void syncHackSetProperty(const char *name, const QVariant &val);
private:
enum HowToSetTheUrl {
--- trunk/KDE/kdebase/runtime/phonon/xine/xinestream.cpp #745608:745609
@@ -376,6 +376,7 @@
videoPort = XineEngine::nullVideoPort();
}
m_stream = xine_stream_new(XineEngine::xine(), audioPort, videoPort);
+ hackSetProperty("xine_stream_t", QVariant::fromValue(static_cast<void \
*>(m_stream))); /*
if (m_audioPostLists.size() == 1) {
m_audioPostLists.first().wireStream();
@@ -521,6 +522,7 @@
if (m_stream) {
xine_dispose(m_stream);
m_stream = 0;
+ hackSetProperty("xine_stream_t", QVariant());
}
}
emit stateChanged(newstate, oldstate);
--- trunk/KDE/kdebase/runtime/phonon/xine/xinestream.h #745608:745609
@@ -151,6 +151,8 @@
void titleChanged(int);
void downstreamEvent(Event *e);
+ void hackSetProperty(const char *name, const QVariant &val);
+
protected:
bool event(QEvent *ev);
void timerEvent(QTimerEvent *event);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic