Changeset 1873

Show
Ignore:
Timestamp:
10/11/08 17:36:57 (2 months ago)
Author:
duncan
svm:headrev:

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

[ 2249030 ] mplayer does not play dvd on hard disk.
Fix applied

Location:
freevo
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • freevo/ChangeLog

    r1864 r1873  
    3434 * Fixed mplayer crash when auto cropping is enabled (B#2089592) 
    3535 * Fixed mplayer when playlist is enabled (B#2219657) 
     36 * Fixed mplayer when playing a DVD iso (B#2249030) 
    3637 * Fixed record server auto re-encode show title (B#2193796) 
    3738 * Fixed record server generic record module to allow a group_type to be given (B#2017200) 
  • freevo/src/video/plugins/mplayer.py

    r1862 r1873  
    215215        if mode == 'dvd': 
    216216            # dvd on harddisc 
    217             args['dvd-device'] = '-dvd-device %s' % item.filename 
     217            args['dvd-device'] = '%s' % item.filename 
    218218            args['url'] = url[:6] + url[url.rfind('/')+1:] 
    219219        elif mode != 'file' and hasattr(item.media, 'devicename'): 
    220             args['dvd-device'] = '-dvd-device %s' % item.media.devicename 
     220            args['dvd-device'] = '%s' % item.media.devicename 
    221221 
    222222        if item.media and hasattr(item.media, 'devicename'): 
    223             args['cdrom-device'] = '-cdrom-device %s' % item.media.devicename 
     223            args['cdrom-device'] = '%s' % item.media.devicename 
    224224 
    225225        if item.selected_subtitle == -1: 
     
    323323        command += str('%(vc)s' % args).split() 
    324324        command += ao.split() 
    325         command += str('%(dvd-device)s' % args).split() 
    326         command += str('%(cdrom-device)s' % args).split() 
     325        command += args['dvd-device'] and ['-dvd-device', '%(dvd-device)s' % args] or [] 
     326        command += args['cdrom-device'] and ['-cdrom-device', '%(cdrom-device)s' % args] or [] 
    327327        command += str('%(alang)s' % args).split() 
    328328        command += str('%(aid)s' % args).split() 
     
    338338        command += args['mode_args'].split() 
    339339        command += args['fxd_args'].split() 
    340         if args['af']: 
    341             command += ['-af', '%s' % ','.join(args['af'])] 
    342         if args['vf']: 
    343             command += ['-vf', '%s' % ','.join(args['vf'])] 
     340        command += args['af'] and ['-af', '%s' % ','.join(args['af'])] or [] 
     341        command += args['vf'] and ['-vf', '%s' % ','.join(args['vf'])] or [] 
    344342 
    345343        # use software scaler?