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 bedc3707b5273d26c10c442dc0e5922276ae89ad..f16b167ed54b29eaff0982ada249b7f893138fe8 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)