From 4f040bee9421efc497d0bfadadcaa957695c3a7b Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sat, 17 Mar 2007 14:23:11 +0000 Subject: don't crash when no libneonhttpsrc installed --- lib/service/servicemp3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3