Ignore:
Timestamp:
May 15, 2014, 7:53:54 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 0.8.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/discname.cpp

    r140 r163  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    4040                case VCD: protocol = "vcd"; break;
    4141                case CDDA: protocol = "cdda"; break;
     42                case BLURAY: protocol = "br"; break;
    4243        }
    4344        return join( DiscData(protocol, title, device) );
     
    4748        qDebug("DiscName::split: disc_url: '%s'", disc_url.toUtf8().constData());
    4849
    49         QRegExp rx1("^(dvd|dvdnav|vcd|cdda)://(\\d+)/(.*)");
    50         QRegExp rx2("^(dvd|dvdnav|vcd|cdda)://(\\d+)");
    51         QRegExp rx3("^(dvd|dvdnav|vcd|cdda):///(.*)");
    52         QRegExp rx4("^(dvd|dvdnav|vcd|cdda):(.*)");
     50        QRegExp rx1("^(dvd|dvdnav|vcd|cdda|br)://(\\d+)/(.*)");
     51        QRegExp rx2("^(dvd|dvdnav|vcd|cdda|br)://(\\d+)");
     52        QRegExp rx3("^(dvd|dvdnav|vcd|cdda|br):///(.*)");
     53        QRegExp rx4("^(dvd|dvdnav|vcd|cdda|br):(.*)");
    5354
    5455        DiscData d;
     
    145146        d = split( "dvdnav:////dev/dvdrecorder/" );
    146147
     148        d = split( "br://1//dev/dvd" );
     149        d = split( "br://1/D:/" );
     150        d = split( "br://5" );
     151        d = split( "br://" );
     152        d = split( "br:////dev/dvdrecorder/" );
     153
    147154        QString s;
    148155        s = join( DVD, 4, "/dev/dvd/" );
     
    156163        s = joinDVD( 3, "", true );
    157164        s = join( VCD, 3, "" );
     165        s = join( BLURAY, 2, "/dev/cdrom");
    158166}
    159167#endif
Note: See TracChangeset for help on using the changeset viewer.