aboutsummaryrefslogtreecommitdiff
path: root/lib/service
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-12-02 11:43:30 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-12-02 11:43:30 +0000
commitb5d81255af4c93441b5b86386dde544e2fa15e05 (patch)
tree3bb90ef3ad93026d87d5a72e8b8d0ac07f12dae9 /lib/service
parente29a03a85f48e57b579505e8080e102a57bfa6b3 (diff)
downloadenigma2-b5d81255af4c93441b5b86386dde544e2fa15e05.tar.gz
enigma2-b5d81255af4c93441b5b86386dde544e2fa15e05.zip
enable http automatic redirects (requires very recent neonhttpsrc). (mpeg-1 podcasts from podcastspot.com do work now.)
Diffstat (limited to 'lib/service')
-rw-r--r--lib/service/servicemp3.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp
index 3f6aa30f..22128aa2 100644
--- a/lib/service/servicemp3.cpp
+++ b/lib/service/servicemp3.cpp
@@ -140,7 +140,10 @@ eServiceMP3::eServiceMP3(const char *filename): m_filename(filename), m_pump(eAp
if (!is_streaming)
source = gst_element_factory_make ("filesrc", "file-source");
else
+ {
source = gst_element_factory_make ("neonhttpsrc", "http-source");
+ g_object_set (G_OBJECT (source), "automatic-redirect", TRUE, NULL);
+ }
if (!source)
eWarning("failed to create %s", is_streaming ? "neonhttpsrc" : "filesrc");