All pastes #815969 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-12-14 15:09 UTC
rendered paste body
Index: mediaobject.cpp
===================================================================
--- mediaobject.cpp     (revision 748421)
+++ mediaobject.cpp     (working copy)
@@ -438,8 +438,8 @@
     if (newstate == m_state)
         return;

+    emit stateChanged(newstate, m_state);
     m_state = newstate;
-    emit stateChanged(newstate, m_state);

     switch (newstate) {
     case Phonon::PausedState:
@@ -966,6 +966,7 @@
             g_free (debug);
             QString message;
             message.sprintf("Error: %s", err->message);
+            m_backend->logMessage(message, Backend::Warning);
             setError(QString(err->message));
             g_error_free (err);
             break;