Disable hardware decoding on the n900
authorKristoffer Grönlund <kristoffer.gronlund@purplescout.se>
Wed, 30 Dec 2009 03:12:02 +0000 (04:12 +0100)
committerKristoffer Grönlund <kristoffer.gronlund@purplescout.se>
Sat, 2 Jan 2010 23:37:44 +0000 (00:37 +0100)
jamaui/player.py

index 8274662..9560934 100644 (file)
@@ -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