Revert "only display missing codec warning when necessary (bixes bug #374)"
authorFraxinas <andreas.frisch@multimedia-labs.de>
Wed, 23 Feb 2011 16:54:56 +0000 (17:54 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Thu, 3 Mar 2011 17:44:23 +0000 (18:44 +0100)
This reverts commit d7b2882048325bcddf00e9d19faa2e728fb7ca5b.

lib/service/servicemp3.cpp
lib/service/servicemp3.h

index 2332e9f..0affafe 100644 (file)
@@ -222,7 +222,6 @@ eServiceMP3::eServiceMP3(eServiceReference ref)
        m_stream_tags = 0;
        m_currentAudioStream = -1;
        m_currentSubtitleStream = 0;
-       m_audioStream_manually_changed = FALSE;
        m_subtitle_widget = 0;
        m_currentTrickRatio = 0;
        m_subs_to_pull = 0;
@@ -1056,7 +1055,6 @@ RESULT eServiceMP3::selectTrack(unsigned int i)
        if (ppos < 0)
                ppos = 0;
 
-       m_audioStream_manually_changed = TRUE;
        int ret = selectAudioStream(i);
        if (!ret) {
                /* flush */
@@ -1250,19 +1248,7 @@ void eServiceMP3::gstBusCall(GstBus *bus, GstMessage *msg)
                                        if ( g_strrstr(sourceName, "videosink") )
                                                m_event((iPlayableService*)this, evUser+11);
                                        else if ( g_strrstr(sourceName, "audiosink") )
-                                       {
-                                               if ( getNumberOfTracks() == 1 || m_audioStream_manually_changed == TRUE )
-                                               {
-                                                       m_event((iPlayableService*)this, evUser+10);
-                                               }
-                                               else
-                                               {
-                                                       int next_track = getCurrentTrack() + 1;
-                                                       if ( next_track >= getNumberOfTracks() )
-                                                               next_track = 0;
-                                                       selectAudioStream(next_track);
-                                               }
-                                       }
+                                               m_event((iPlayableService*)this, evUser+10);
                                }
                        }
                        g_error_free(err);
@@ -1332,7 +1318,6 @@ void eServiceMP3::gstBusCall(GstBus *bus, GstMessage *msg)
 
                        m_audioStreams.clear();
                        m_subtitleStreams.clear();
-                       m_audioStream_manually_changed = FALSE;
 
                        for (i = 0; i < n_audio; i++)
                        {
@@ -1399,7 +1384,6 @@ void eServiceMP3::gstBusCall(GstBus *bus, GstMessage *msg)
                        if ( gst_is_missing_plugin_message(msg) )
                        {
                                gchar *description = gst_missing_plugin_message_get_description(msg);
-                               
                                if ( description )
                                {
                                        m_error_message = "GStreamer plugin " + (std::string)description + " not available!\n";
index 365b996..a92a4cf 100644 (file)
@@ -177,7 +177,6 @@ private:
        static int pcm_delay;
        static int ac3_delay;
        int m_currentAudioStream;
-       bool m_audioStream_manually_changed;
        int m_currentSubtitleStream;
        int selectAudioStream(int i);
        std::vector<audioStream> m_audioStreams;