aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/service/servicemp3.cpp3
1 files changed, 2 insertions, 1 deletions
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)