correctly return (missing plugin) error message strings to the gui
authorFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 11 May 2009 16:38:01 +0000 (18:38 +0200)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 11 May 2009 16:38:01 +0000 (18:38 +0200)
lib/service/servicemp3.cpp

index 79098f2c81eae0d2f91b2332fd766ef25deee6a9..5ac413b164ca35f1b7605c07a38bdc1178d73641 100644 (file)
@@ -702,7 +702,7 @@ int eServiceMP3::getInfo(int w)
 
 std::string eServiceMP3::getInfoString(int w)
 {
 
 std::string eServiceMP3::getInfoString(int w)
 {
-       if ( !m_stream_tags )
+       if ( !m_stream_tags && w < sUser && w > 26 )
                return "";
        gchar *tag = 0;
        switch (w)
                return "";
        gchar *tag = 0;
        switch (w)
@@ -800,7 +800,6 @@ std::string eServiceMP3::getInfoString(int w)
        case sTagChannelMode:
                tag = "channel-mode";
                break;
        case sTagChannelMode:
                tag = "channel-mode";
                break;
-
        case sUser+12:
                return m_error_message;
        default:
        case sUser+12:
                return m_error_message;
        default:
@@ -1128,6 +1127,7 @@ eDebug("AUDIO STRUCT=%s", g_type);
                                g_free (g_lang);
 //                             g_free (g_type);
                        }
                                g_free (g_lang);
 //                             g_free (g_type);
                        }
+                       m_event((iPlayableService*)this, evUpdatedEventInfo);
                }
                case GST_MESSAGE_ELEMENT:
                {
                }
                case GST_MESSAGE_ELEMENT:
                {