Changeset 168 for smplayer/vendor/current/src/core.cpp
- Timestamp:
- Oct 9, 2014, 11:54:00 AM (11 years ago)
- File:
-
- 1 edited
-
smplayer/vendor/current/src/core.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/core.cpp
r163 r168 268 268 #ifdef YOUTUBE_SUPPORT 269 269 yt = new RetrieveYoutubeUrl(this); 270 271 272 270 273 connect(yt, SIGNAL(gotPreferredUrl(const QString &)), this, SLOT(openYT(const QString &))); 271 274 connect(yt, SIGNAL(connecting(QString)), this, SLOT(connectingToYT(QString))); … … 897 900 yt->setPreferredQuality( (RetrieveYoutubeUrl::Quality) pref->yt_quality ); 898 901 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); 900 904 #ifdef YT_USE_SCRIPT 901 905 YTSig::setScriptFile( Paths::configPath() + "/yt.js" ); … … 2515 2519 2516 2520 #ifdef Q_OS_WIN 2521 2517 2522 if (!pref->use_windowsfontdir) { 2518 QProcessEnvironment env = QProcessEnvironment::systemEnvironment();2519 2523 env.insert("FONTCONFIG_FILE", Paths::configPath() + "/fonts.conf"); 2520 proc->setProcessEnvironment(env);2521 }2524 2525 2522 2526 #endif 2523 2527 if ( !proc->start() ) { … … 4245 4249 //! Called when the state changes 4246 4250 void 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)) { 4249 4265 // Delayed volume change 4250 4266 qDebug("Core::watchState: delayed volume change");
Note:
See TracChangeset
for help on using the changeset viewer.
