desktop/smplayer/seekingfix.diff
2011-03-27 10:59:02 +00:00

23 lines
769 B
Diff

Index: smplayer/trunk/src/mplayerprocess.cpp
===================================================================
--- smplayer/trunk/src/mplayerprocess.cpp (revision 3598)
+++ smplayer/trunk/src/mplayerprocess.cpp (working copy)
@@ -91,6 +91,7 @@
}
static QRegExp rx_av("^[AV]: *([0-9,:.-]+)");
+static QRegExp rx_v("V: *([0-9,:.-]+)");
static QRegExp rx_frame("^[AV]:.* (\\d+)\\/.\\d+");// [0-9,.]+");
static QRegExp rx("^(.*)=(.*)");
#if !NOTIFY_AUDIO_CHANGES
@@ -175,6 +176,9 @@
//qDebug("%s", line.toUtf8().data());
if (rx_av.indexIn(line) > -1) {
double sec = rx_av.cap(1).toDouble();
+ if(rx_v.indexIn(line) > -1) {
+ sec = rx_v.cap(1).toDouble();
+ }
//qDebug("cap(1): '%s'", rx_av.cap(1).toUtf8().data() );
//qDebug("sec: %f", sec);