don't crash when no libneonhttpsrc installed
authorFelix Domke <tmbinc@elitedvb.net>
Sat, 17 Mar 2007 14:23:11 +0000 (14:23 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sat, 17 Mar 2007 14:23:11 +0000 (14:23 +0000)
lib/service/servicemp3.cpp

index bedc370..f16b167 100644 (file)
@@ -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)