Changeset 116 for smplayer/trunk/src
- Timestamp:
- Dec 14, 2011, 2:31:02 PM (14 years ago)
- Location:
- smplayer/trunk/src
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk/src/core.cpp
r112 r116 22 22 #include <QRegExp> 23 23 #include <QTextStream> 24 #include <QEventLoop> 24 25 25 26 #include <cmath> … … 2227 2228 } 2228 2229 2230 #ifdef Q_OS_OS2 2231 QEventLoop eventLoop; 2232 2233 connect(proc, SIGNAL(processExited()), &eventLoop, SLOT(quit())); 2234 2235 tellmp("quit"); 2236 2237 QTimer::singleShot(5000, &eventLoop, SLOT(quit())); 2238 eventLoop.exec(QEventLoop::ExcludeUserInputEvents); 2239 2240 if (proc->isRunning()) { 2241 qWarning("Core::stopMplayer: process didn't finish. Killing it..."); 2242 proc->kill(); 2243 } 2244 #else 2229 2245 tellmp("quit"); 2230 2246 … … 2234 2250 proc->kill(); 2235 2251 } 2252 #endif 2236 2253 2237 2254 qDebug("Core::stopMplayer: Finished. (I hope)");
Note:
See TracChangeset
for help on using the changeset viewer.