diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-09-24 12:08:27 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-09-24 12:08:27 +0000 |
| commit | 8c811bc11d54848b4a35bba44e8ef1b8d6948806 (patch) | |
| tree | 9a73f7608f60ebce6ad1fa90ab090f775a62bc35 /lib | |
| parent | 35c151c9257ebc4769722283c93c6d96cad2e20c (diff) | |
| download | enigma2-8c811bc11d54848b4a35bba44e8ef1b8d6948806.tar.gz enigma2-8c811bc11d54848b4a35bba44e8ef1b8d6948806.zip | |
fix crash in language tag parsing
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/service/servicemp3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<audioStream>::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); |
