Changeset 116


Ignore:
Timestamp:
Dec 14, 2011, 2:31:02 PM (13 years ago)
Author:
Silvan Scherrer
Message:

smplayer: prevent some gui hang

Location:
smplayer/trunk
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk/build_os2.cmd

    r110 r116  
    1111/* version 0.2.7 from 29.04.2010 Silvan (added smplayer version for sed'ing readme's */
    1212/* version 0.2.8 from 20.05.2010 Silvan (added version to zip) */
     13/* version 0.2.9 from 11.11.2011 Silvan (adapted to Qt 4.7.3) */
    1314
    1415/* init the version string (don't forget to change) */
    15 version = "0.2.8"
    16 version_date = "20.05.2010"
     16version = "0.2.9"
     17version_date = "11.11.2011"
    1718smplayer_version = "0.6.9"
    18 smplayer_build = "beta1"
    19 internal_build = "0_6_9-b2"
     19smplayer_build = "build3"
     20internal_build = "0_6_9-b3"
    2021'@echo off'
    2122
     
    113114
    114115/* copy the exe and the icon (including rename and setting the new LONGNAME EA) */
    115         ok = SysCopyObject(srcDir||'\release\smplayer.exe',installDir)
     116        ok = SysCopyObject(srcDir||'\smplayer.exe',installDir)
    116117        ok = SysCopyObject(srcDir||'\smplayer_os2.ico',installDir)
    117118        address cmd 'ren 'installDir'\smplayer_os2.ico smplayer.ico'
  • smplayer/trunk/liesmich.os2

    r110 r116  
    270270=========================
    271271
     2722011-11-11
     273  * updated to Qt 4.7.3
     274  * fixed a possible hang when ending smplayer while playing a movie (patch by Rudi)
     275
    2722762010-06-30
    273277  * fixed a nasty 1 second delay
  • smplayer/trunk/lisezmoi.os2

    r110 r116  
    309309==========================
    310310
     3112011-11-11
     312  * updated to Qt 4.7.3
     313  * fixed a possible hang when ending smplayer while playing a movie (patch by Rudi)
     314
    3113152010-06-30
    312316  * fixed a nasty 1 second delay
  • smplayer/trunk/readme.os2

    r110 r116  
    260260==========
    261261
     2622011-11-11
     263  * updated to Qt 4.7.3
     264  * fixed a possible hang when ending smplayer while playing a movie (patch by Rudi)
     265
    2622662010-06-30
    263267  * fixed a nasty 1 second delay
  • smplayer/trunk/src/core.cpp

    r112 r116  
    2222#include <QRegExp>
    2323#include <QTextStream>
     24#include <QEventLoop>
    2425
    2526#include <cmath>
     
    22272228        }
    22282229
     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
    22292245    tellmp("quit");
    22302246   
     
    22342250                proc->kill();
    22352251        }
     2252#endif
    22362253
    22372254        qDebug("Core::stopMplayer: Finished. (I hope)");
Note: See TracChangeset for help on using the changeset viewer.