Ignore:
Timestamp:
Oct 9, 2014, 11:54:00 AM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 14.9.0

File:
1 edited

Legend:

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

    r163 r168  
    268268#ifdef YOUTUBE_SUPPORT
    269269        yt = new RetrieveYoutubeUrl(this);
     270
     271
     272
    270273        connect(yt, SIGNAL(gotPreferredUrl(const QString &)), this, SLOT(openYT(const QString &)));
    271274        connect(yt, SIGNAL(connecting(QString)), this, SLOT(connectingToYT(QString)));
     
    897900                yt->setPreferredQuality( (RetrieveYoutubeUrl::Quality) pref->yt_quality );
    898901                qDebug("Core::openStream: user_agent: '%s'", pref->yt_user_agent.toUtf8().constData());
    899                 if (!pref->yt_user_agent.isEmpty()) yt->setUserAgent(pref->yt_user_agent);
     902                /*if (!pref->yt_user_agent.isEmpty()) yt->setUserAgent(pref->yt_user_agent); */
     903                yt->setUserAgent(pref->yt_user_agent);
    900904                #ifdef YT_USE_SCRIPT
    901905                YTSig::setScriptFile( Paths::configPath() + "/yt.js" );
     
    25152519
    25162520#ifdef Q_OS_WIN
     2521
    25172522        if (!pref->use_windowsfontdir) {
    2518                 QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
    25192523                env.insert("FONTCONFIG_FILE", Paths::configPath() + "/fonts.conf");
    2520                 proc->setProcessEnvironment(env);
    2521         }
     2524       
     2525       
    25222526#endif
    25232527        if ( !proc->start() ) {
     
    42454249//!  Called when the state changes
    42464250void Core::watchState(Core::State state) {
    4247         if ((state == Playing) && (change_volume_after_unpause))
    4248         {
     4251#ifdef SCREENSAVER_OFF
     4252        #if 0
     4253        qDebug("Core::watchState: %d", state);
     4254        //qDebug("Core::watchState: has video: %d", !mdat.novideo);
     4255
     4256        if ((state == Playing) /* && (!mdat.novideo) */) {
     4257                disableScreensaver();
     4258        } else {
     4259                enableScreensaver();
     4260        }
     4261        #endif
     4262#endif
     4263
     4264        if ((state == Playing) && (change_volume_after_unpause)) {
    42494265                // Delayed volume change
    42504266                qDebug("Core::watchState: delayed volume change");
Note: See TracChangeset for help on using the changeset viewer.