summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-08-18 17:30:53 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-08-18 17:30:53 (GMT)
commit109e04933e4e6b51a3e546f9dc3f0a062eb8470e (patch)
tree7f1ad5fd88e065bff031d3ebcda8c49409057d0b /src/3rdparty/phonon/mmf/abstractmediaplayer.cpp
parent62e9750e4055808f5eb04479b2f0c221e13747ff (diff)
downloadQt-109e04933e4e6b51a3e546f9dc3f0a062eb8470e.zip
Qt-109e04933e4e6b51a3e546f9dc3f0a062eb8470e.tar.gz
Qt-109e04933e4e6b51a3e546f9dc3f0a062eb8470e.tar.bz2
Started work on VideoPlayer implementation
Diffstat (limited to 'src/3rdparty/phonon/mmf/abstractmediaplayer.cpp')
-rw-r--r--src/3rdparty/phonon/mmf/abstractmediaplayer.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp b/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp
index a3affef..703590b 100644
--- a/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp
+++ b/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp
@@ -178,13 +178,8 @@ void MMF::AbstractMediaPlayer::setTickInterval(qint32 interval)
Phonon::ErrorType MMF::AbstractMediaPlayer::errorType() const
{
- TRACE_CONTEXT(AbstractMediaPlayer::errorType, EAudioApi);
- TRACE_ENTRY("state %d", m_state);
-
const Phonon::ErrorType result = (ErrorState == m_state)
? m_error : NoError;
-
- TRACE_RETURN("%d", result);
}
QString MMF::AbstractMediaPlayer::errorString() const
@@ -466,6 +461,17 @@ void MMF::AbstractMediaPlayer::changeState(PrivateState newState)
TRACE_EXIT_0();
}
+void MMF::AbstractMediaPlayer::setError(Phonon::ErrorType error)
+{
+ TRACE_CONTEXT(AbstractMediaPlayer::setError, EAudioInternal);
+ TRACE_ENTRY("state %d error %d", m_state, error);
+
+ m_error = error;
+ changeState(ErrorState);
+
+ TRACE_EXIT_0();
+}
+
qint64 MMF::AbstractMediaPlayer::toMilliSeconds(const TTimeIntervalMicroSeconds &in)
{
return in.Int64() / 1000;