X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/86b04511f9dc9f11465b68159f5547a124d1c4d0..9c67a0512940f563046f7df57524836bb35a8447:/lib/service/servicemp3.cpp diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index bedc3707..3d8def57 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) @@ -575,6 +576,8 @@ void eServiceMP3::gstBusCall(GstBus *bus, GstMessage *msg) m_stream_tags = result; } gst_tag_list_free(tags); + + m_event((iPlayableService*)this, evUpdatedInfo); break; } default: