Fix somafm playback on linux. Might merge this with the mac ifdef if possible?

This commit is contained in:
David Sansome 2010-04-12 17:40:08 +00:00
parent 95bfcd86a9
commit 00b19ae83e
1 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,11 @@ bool GstEnginePipeline::Init(const QUrl &url) {
src_ = GstEngine::CreateElement("giosrc");
}
#else
src_ = GstEngine::CreateElement("giosrc");
if (url.scheme() == "http") {
src_ = GstEngine::CreateElement("souphttpsrc");
} else {
src_ = GstEngine::CreateElement("giosrc");
}
#endif
if (!src_)
return false;