From: Felix Domke Date: Sat, 17 Mar 2007 14:23:11 +0000 (+0000) Subject: don't crash when no libneonhttpsrc installed X-Git-Tag: 2.6.0~2379 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/4f040bee9421efc497d0bfadadcaa957695c3a7b don't crash when no libneonhttpsrc installed --- diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index bedc3707..f16b167e 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -142,7 +142,8 @@ eServiceMP3::eServiceMP3(const char *filename): m_filename(filename), m_pump(eAp else { source = gst_element_factory_make ("neonhttpsrc", "http-source"); - g_object_set (G_OBJECT (source), "automatic-redirect", TRUE, NULL); + if (source) + g_object_set (G_OBJECT (source), "automatic-redirect", TRUE, NULL); } if (!source)