Changeset 1870

Show
Ignore:
Timestamp:
09/11/08 17:20:13 (2 months ago)
Author:
duncan
svm:headrev:

cc3e1ea1-1e01-0410-8d68-8b121e83a9d5:11152
Message:

Split up STOP and PLAY_END, USER_END event processing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • freevo/src/audio/plugins/mplayer.py

    r1861 r1870  
    119119 
    120120        # Build the MPlayer command 
    121         mpl = '--prio=%s %s -slave %s' % (config.MPLAYER_NICE, 
    122                                           config.MPLAYER_CMD, 
    123                                           config.MPLAYER_ARGS_DEF) 
    124  
    125  
     121        mpl = '--prio=%s %s -slave %s' % (config.MPLAYER_NICE, config.MPLAYER_CMD, config.MPLAYER_ARGS_DEF) 
    126122 
    127123        if config.DEBUG_CHILDAPP: 
     
    218214                return True 
    219215 
    220         if event in (STOP, PLAY_END, USER_END): 
     216        if event == STOP: 
     217            self.playerGUI.stop(restore_menu=True) 
     218            return self.item.eventhandler(event) 
     219 
     220        if event in (PLAY_END, USER_END): 
    221221            self.playerGUI.stop() 
    222222            return self.item.eventhandler(event) 
     
    323323            m = self.RE_NEW_TRK(line) 
    324324            if m: 
    325                 #DJW# 
    326                 rc.post_event(Event(OSD_MESSAGE, arg=_('track gap detected'))) 
    327                 #DJW# 
    328325                rc.post_event(Event('TRACK')) 
    329326