From: Fraxinas Date: Wed, 27 May 2009 09:35:04 +0000 (+0200) Subject: fix possible crash on weird audio streams X-Git-Tag: 2.6.0~295 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/8e60bdc64c73787b8e7955a6a99ad5afe4a071ef fix possible crash on weird audio streams --- diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index 7c00121d..1f3e2d03 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -1134,6 +1134,8 @@ void eServiceMP3::gstBusCall(GstBus *bus, GstMessage *msg) GstPad* pad = 0; g_signal_emit_by_name (m_gst_playbin, "get-audio-pad", i, &pad); GstCaps* caps = gst_pad_get_negotiated_caps(pad); + if (!caps) + continue; GstStructure* str = gst_caps_get_structure(caps, 0); gchar *g_type; g_type = gst_structure_get_name(str);