git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't crash when no libneonhttpsrc installed
[enigma2.git]
/
lib
/
service
/
servicemp3.cpp
diff --git
a/lib/service/servicemp3.cpp
b/lib/service/servicemp3.cpp
index bedc3707b5273d26c10c442dc0e5922276ae89ad..f16b167ed54b29eaff0982ada249b7f893138fe8 100644
(file)
--- 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)