From 20a5c72009431fdc245eb940ea88e364cf9614a1 Mon Sep 17 00:00:00 2001
From: Luca Capello <luca@pca.it>
Date: Sun, 26 Oct 2008 11:29:24 +0100
Subject: [PATCH] framework/subsystems/odeviced/audio.py: add Ogg decoder

This in part solves ticket #123 [1] (which is vital for Debian [2])
or, better, in Michael's words: "that's just a quick bandaid which
doesn't solve it in general, but I think it's the way to go until
someone profiled gstreamer's decodebin and checked where it burns all
these cycles" [3].

Footnotes:
[1] http://trac.freesmartphone.org/ticket/123
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495668
[3] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495668#63
---
 framework/subsystems/odeviced/audio.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/framework/subsystems/odeviced/audio.py b/framework/subsystems/odeviced/audio.py
index 3e03931..321e6e2 100644
--- a/framework/subsystems/odeviced/audio.py
+++ b/framework/subsystems/odeviced/audio.py
@@ -103,6 +103,7 @@ class GStreamerPlayer( Player ):
         "mod": "modplug",
         "mp3": "mad",
         "wav": "wavparse",
+        "ogg": "oggdemux ! vorbisdec ! audioconvert"
         }
 
     def __init__( self, *args, **kwargs ):
-- 
1.5.6.5


