From: Andreas Frisch Date: Wed, 24 Sep 2008 12:08:27 +0000 (+0000) Subject: fix crash in language tag parsing X-Git-Tag: 2.6.0~853 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/8c811bc11d54848b4a35bba44e8ef1b8d6948806?ds=sidebyside fix crash in language tag parsing --- diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index 331f7a24..f3f44177 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -766,7 +766,7 @@ void eServiceMP3::gstBusCall(GstBus *bus, GstMessage *msg) m_stream_tags = result; } gchar *g_audiocodec; - if (gst_tag_list_get_string(m_stream_tags, GST_TAG_AUDIO_CODEC, &g_audiocodec)) + if (gst_tag_list_get_string(tags, GST_TAG_AUDIO_CODEC, &g_audiocodec)) { std::vector::iterator IterAudioStream = m_audioStreams.begin(); while ( IterAudioStream->language_code.length() && IterAudioStream != m_audioStreams.end()) @@ -776,7 +776,7 @@ void eServiceMP3::gstBusCall(GstBus *bus, GstMessage *msg) else if ( g_strrstr(g_audiocodec, "AC-3 audio") ) IterAudioStream->type = audioStream::atAC3; gchar *g_language; - if ( gst_tag_list_get_string(m_stream_tags, GST_TAG_LANGUAGE_CODE, &g_language) ) + if ( gst_tag_list_get_string(tags, GST_TAG_LANGUAGE_CODE, &g_language) ) IterAudioStream->language_code = std::string(g_language); g_free (g_language); g_free (g_audiocodec);