Ignore:
Timestamp:
Aug 31, 2016, 5:31:04 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.8.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/mpvprocess.cpp

    r176 r181  
    190190        }
    191191
     192        static double last_sec = -1;
     193
    192194        // Parse A: V: line
    193195        //qDebug("MPVProcess::parseLine: %s", line.toUtf8().data());
     
    207209                }
    208210
    209                 if (paused && notified_pause) return;
     211                if (paused && notified_pause) {
     212                        if (last_sec != sec) {
     213                                last_sec = sec;
     214                                emit receivedCurrentSec(sec);
     215                                emit receivedPause();
     216                        }
     217                        return;
     218                }
    210219
    211220                if (paused) {
    212221                        notified_pause = true;
    213222                        qDebug("MPVProcess::parseLine: paused");
    214                         receivedPause();
     223                        emit receivedPause();
    215224                        return;
    216225                }
     
    218227                if (buffering) {
    219228                        qDebug("MPVProcess::parseLine: buffering");
    220                         receivedBuffering();
     229                        emit receivedBuffering();
    221230                        return;
    222231                }
     
    224233                if (idle) {
    225234                        qDebug("MPVProcess::parseLine: idle");
    226                         receivedBuffering();
     235                        emit receivedBuffering();
    227236                        return;
    228237                }
     
    253262
    254263                if (status == "Paused") {
    255                         receivedPause();
     264                        emit receivedPause();
    256265                        return;
    257266                }
    258267                else
    259268                if ((status == "...") || (status == "Buffering")) {
    260                         receivedBuffering();
     269                        emit receivedBuffering();
    261270                        return;
    262271                }
Note: See TracChangeset for help on using the changeset viewer.