Commits

A2K committed 525406a

Use gstreamer as default sound output

Comments (0)

Files changed (4)

         settings = QtCore.QSettings()
 
         #loading player backend
-        audio = settings.value('audio', QtCore.QVariant(0)).toInt()[0]
+        audio = settings.value('audio', QtCore.QVariant(1)).toInt()[0]
         if audio == 0:
             try:
                 from vplayer.player_phonon import Player
         self.ui.caching.setText(conf('caching/directory', std).toString())
         self.ui.collection.setText(conf('collection/directory').toString())
         self.ui.only1251.setChecked(conf('detect_only_cp1251', True).toBool())
-        self.ui.audio.setCurrentIndex(conf('audio', 0).toInt()[0])
+        self.ui.audio.setCurrentIndex(conf('audio', 1).toInt()[0])
 
         self.ui.show_search_tab.setChecked(conf('MainWindow/widgets/search/enabled', True).toBool())
         self.ui.show_collection_tab.setChecked(conf('MainWindow/widgets/collection/enabled', True).toBool())
         self.media.setCurrentSource(self.mediasrc)
         self.media.play()
         self.emit(QtCore.SIGNAL('status'), ('start', track))
+        log.debug('!!! track should play NOW')
 
     def control(self, state):
         if state == 'pause':
 
     def seek(self, pos):
         QtCore.QIODevice.seek(self, pos)
+        self.wait_for_buffer()
         if pos > self.buf.pos:
             log.debug('Seek over downloaded range - not seeking')
             return False