From: Kristoffer Grönlund Date: Wed, 30 Dec 2009 03:12:02 +0000 (+0100) Subject: Disable hardware decoding on the n900 X-Git-Url: http://git.maemo.org/git/?p=jamaendo;a=commitdiff_plain;h=8065aa1a44f591d1c9e9257ab90914d6c347157f Disable hardware decoding on the n900 --- diff --git a/jamaui/player.py b/jamaui/player.py index 8274662..9560934 100644 --- a/jamaui/player.py +++ b/jamaui/player.py @@ -54,7 +54,7 @@ class GStreamer(object): # 1. Weird volume bugs in playbin when playing ogg or wma files # 2. When seeking the DSPs sometimes lie about the real position info if util.platform == 'maemo': - if not self._maemo_setup_hardware_player(filetype): + if True or not self._maemo_setup_hardware_player(filetype): self._maemo_setup_software_player() log.debug( 'Using software decoding (maemo)' ) else: @@ -214,6 +214,8 @@ class Playlist(object): return "{%s}" % (", ".join([str(self.name), str(self.numalbum), str(self.url)])) def __init__(self, items = []): + if items is None: + items = [] self.items = [Playlist.Entry(item) for item in items] self.current = -1