updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / smplayer-svn / seek-while-pausing-mplayer2-fix.diff
blob18638bfe5f0d556c54e35738d17ed0b15e5c9c55
1 Index: smplayer/trunk/src/mplayerprocess.cpp
2 ===================================================================
3 --- smplayer/trunk/src/mplayerprocess.cpp (revision 3598)
4 +++ smplayer/trunk/src/mplayerprocess.cpp (working copy)
5 @@ -91,6 +91,7 @@
8 static QRegExp rx_av("^[AV]: *([0-9,:.-]+)");
9 +static QRegExp rx_v("V: *([0-9,:.-]+)");
10 static QRegExp rx_frame("^[AV]:.* (\\d+)\\/.\\d+");// [0-9,.]+");
11 static QRegExp rx("^(.*)=(.*)");
12 #if !NOTIFY_AUDIO_CHANGES
13 @@ -175,6 +176,9 @@
14 //qDebug("%s", line.toUtf8().data());
15 if (rx_av.indexIn(line) > -1) {
16 double sec = rx_av.cap(1).toDouble();
17 + if(rx_v.indexIn(line) > -1) {
18 + sec = rx_v.cap(1).toDouble();
19 + }
20 //qDebug("cap(1): '%s'", rx_av.cap(1).toUtf8().data() );
21 //qDebug("sec: %f", sec);