Ignore:
Timestamp:
May 16, 2014, 9:51:55 AM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update trunk to latest 0.8.7

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/infofile.cpp

    r142 r165  
    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
     
    4949                case TYPE_TV    :       icon = "type_tv.png"; break;
    5050                case TYPE_STREAM :      icon = "type_url.png"; break;
     51#ifdef BLURAY_SUPPORT
     52                case TYPE_BLURAY :      icon = "type_bluray.png"; break;
     53#endif
    5154                default                 :       icon = "type_unknown.png";
    5255        }
    5356        icon = "<img src=\"" + Images::file(icon) + "\"> ";
    5457
    55         if (md.type == TYPE_DVD) {
     58#ifdef BLURAY_SUPPORT
     59        if (md.type == TYPE_DVD || md.type == TYPE_BLURAY)
     60#else
     61        if (md.type == TYPE_DVD)
     62#endif
     63        {
    5664                DiscData disc_data = DiscName::split(md.filename);
    5765                s += title( icon + disc_data.protocol + "://" + QString::number(disc_data.title) );
     
    214222
    215223inline QString InfoFile::tr( const char * sourceText, const char * comment, int n )  {
    216         return QCoreApplication::translate("InfoFile", sourceText, comment, QCoreApplication:: CodecForTr, n );
    217 }
    218 
     224#if QT_VERSION >= 0x050000
     225        return QCoreApplication::translate("InfoFile", sourceText, comment, n );
     226#else
     227        return QCoreApplication::translate("InfoFile", sourceText, comment, QCoreApplication::CodecForTr, n );
     228#endif
     229}
     230
Note: See TracChangeset for help on using the changeset viewer.